OLD | NEW |
(Empty) | |
| 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 |
| 5 function A() { |
| 6 Object.defineProperty(this, "x", { set: function () {}, get: function () {}}); |
| 7 this.a = function () { return 1; } |
| 8 } |
| 9 |
| 10 function B() { |
| 11 A.apply( this ); |
| 12 this.a = function () { return 2; } |
| 13 } |
| 14 |
| 15 var b = new B(); |
| 16 assertTrue(Object.getOwnPropertyDescriptor(b, "a").enumerable); |
OLD | NEW |