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-368.js
blob1a9cb6b12b5ad51ef668a4756d15dc4777894517
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-368
6 description: >
7     ES5 Attributes - property ([[Writable]] is false, [[Enumerable]]
8     is false, [[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: false,
18   configurable: true
19 });
21 verifyProperty(obj, "prop", {
22   value: 2010,
23   writable: false,
24 });
26 reportCompare(0, 0);