Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/11.13.1-4-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-4-3-s
6 description: >
7 simple assignment throws TypeError if LeftHandSide is a readonly
8 property in strict mode (Global.Infinity)
9 flags: [onlyStrict]
10 ---*/
11
12 var global = this;
13 assert.throws(TypeError, function() {
14 global.Infinity = 42;
15 });