tests/auto/qml/ecmascripttests/test262/test/harness/propertyhelper-verifynotconfigurable-not-configurable-strict.js
raw symbols SCIP| 1 | // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | description: > |
| 6 | Objects whose specified property is not configurable satisfy the assertion |
| 7 | in strict mode. |
| 8 | includes: [propertyHelper.js,sta.js] |
| 9 | flags: [onlyStrict] |
| 10 | ---*/ |
| 11 | var obj = {}; |
| 12 | Object.defineProperty(obj, 'a', { |
| 13 | configurable: false |
| 14 | }); |
| 15 | |
| 16 | verifyNotConfigurable(obj, 'a'); |