1// Copyright 2013 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5function A() { 6 Object.defineProperty(this, "x", { set: function () {}, get: function () {}}); 7 this.a = function () { return 1; } 8} 9 10function B() { 11 A.apply( this ); 12 this.a = function () { return 2; } 13} 14 15var b = new B(); 16assertTrue(Object.getOwnPropertyDescriptor(b, "a").enumerable); 17