tests/auto/qml/ecmascripttests/test262/test/language/expressions/postfix-increment/11.3.1-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.3.1-2-3-s |
| 6 | description: > |
| 7 | Strict Mode - SyntaxError is not thrown if the identifier |
| 8 | 'arguments[...]' appears as a PostfixExpression(arguments++) |
| 9 | flags: [onlyStrict] |
| 10 | ---*/ |
| 11 | |
| 12 | function testcase() { |
| 13 | arguments[1] = 7; |
| 14 | arguments[1]++; |
| 15 | assert.sameValue(arguments[1], 8, 'arguments[1]'); |
| 16 | } |
| 17 | testcase(); |