Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-3-153.js
blob20c3e5c191aaf92162f91e7dc83f7a60aec74d8f
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-3-153
6 description: >
7     Object.defineProperty - 'writable' property in 'Attributes' is not
8     present  (8.10.5 step 6)
9 includes: [propertyHelper.js]
10 ---*/
12 var obj = {};
14 var attr = {
15   value: 100
18 Object.defineProperty(obj, "property", attr);
20 assert(obj.hasOwnProperty("property"));
21 verifyNotWritable(obj, "property");
23 reportCompare(0, 0);