tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/11.13.1-4-29gs.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-29gs |
| 6 | description: > |
| 7 | Strict Mode - TypeError is thrown if the identifier 'Math.PI' |
| 8 | appears as the LeftHandSideExpression of simple assignment(=) |
| 9 | flags: [onlyStrict] |
| 10 | ---*/ |
| 11 | |
| 12 | assert.throws(TypeError, function() { |
| 13 | Math.PI = 20; |
| 14 | }); |