// Copyright 2017 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --allow-natives-syntax --turbo-escapeclassC{constructor(x){this.a=x;}};classD{constructor(x){this.a=x;}};functionfoo(){varx=newC(7);vary=newD(x);varz=y.a;%DeoptimizeNow();assertEquals(7,z.a);}