Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/11.13.1-3-s.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 11.13.1-3-s
6 description: >
7 Strict Mode - TypeError is thrown if The LeftHandSide is a
8 reference to a non-existent property of an object whose
9 [[Extensible]] internal property has the value false under strict
10 mode
11 flags: [onlyStrict]
12 ---*/
13
14 var obj = {};
15 Object.preventExtensions(obj);
16 assert.throws(TypeError, function() {
17 obj.len = 10;
18 });