blob: 9f37b2e478c5f647bd02cb94a009c1c1453b083e [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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);