tests/auto/qml/ecmascripttests/test262/test/language/expressions/prefix-increment/11.4.4-2-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.4.4-2-3-s |
| 6 | description: SyntaxError is not thrown for ++arguments[...] |
| 7 | ---*/ |
| 8 | |
| 9 | function testcase() { |
| 10 | arguments[1] = 7; |
| 11 | ++arguments[1]; |
| 12 | assert.sameValue(arguments[1], 8, 'arguments[1]'); |
| 13 | } |
| 14 | testcase(); |