Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/compound-assignment/11.13.2-51-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.2-51-s
6 description: >
7 Strict Mode - TypeError is thrown if The LeftHandSide of a
8 Compound Assignment operator(>>=) is a reference to a non-existent
9 property of an object whose [[Extensible]] internal property is
10 false
11 flags: [onlyStrict]
12 ---*/
13
14 var obj = {};
15 Object.preventExtensions(obj);
16 assert.throws(TypeError, function() {
17 obj.len >>= 10;
18 });