blob: eeabd495e88b18839eb86e95db3abc34dfab5e75 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright (c) 2012 Ecma International. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5es5id: 15.2.3.6-4-407
6description: >
7 ES5 Attributes - [[Value]] attribute of inherited property of
8 [[Prototype]] internal property is correct (Error Instance)
9---*/
10
11 Object.defineProperty(Error.prototype, "prop", {
12 value: 1001,
13 writable: true,
14 enumerable: true,
15 configurable: true
16 });
17 var errObj = new Error();
18
19assert.sameValue(errObj.hasOwnProperty("prop"), false, 'errObj.hasOwnProperty("prop")');
20assert.sameValue(errObj.prop, 1001, 'errObj.prop');