tests/auto/qml/ecmascripttests/test262/test/language/expressions/prefix-increment/11.4.4-2-2-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-2-s |
| 6 | description: Strict Mode - SyntaxError is thrown for ++arguments |
| 7 | flags: [onlyStrict] |
| 8 | ---*/ |
| 9 | |
| 10 | function testcase() { |
| 11 | var blah = arguments; |
| 12 | assert.throws(SyntaxError, function() { |
| 13 | eval("++arguments;"); |
| 14 | }); |
| 15 | assert.sameValue(blah, arguments, 'blah'); |
| 16 | } |
| 17 | testcase(); |