tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/S8.12.4_A1.js
raw| 1 | // Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | info: If the property has the ReadOnly attribute, [[CanPut]](P) return false |
| 6 | es5id: 8.12.4_A1 |
| 7 | description: Try put other value for Math.E property |
| 8 | flags: [noStrict] |
| 9 | ---*/ |
| 10 | |
| 11 | var __e = Math.E; |
| 12 | Math.E = 1; |
| 13 | if (Math.E !== __e){ |
| 14 | $ERROR('#1: __e = Math.E; Math.E = 1; Math.E === __e. Actual: ' + (Math.E)); |
| 15 | } |