Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-4-354.js
blobd43159c7c6bc84b5da88d9322aff4e0db00efb4d
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es5id: 15.2.3.6-4-354
6 description: >
7     ES5 Attributes - property ([[Writable]] is false, [[Enumerable]]
8     is true, [[Configurable]] is true) is unwritable
9 includes: [propertyHelper.js]
10 ---*/
12 var obj = {};
14 Object.defineProperty(obj, "prop", {
15   value: 2010,
16   writable: false,
17   enumerable: true,
18   configurable: true
19 });
21 verifyProperty(obj, "prop", {
22   value: 2010,
23   writable: false,
24 });
26 reportCompare(0, 0);