Debian Codegraph @

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