Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/id-eval-strict.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 es5id: 11.13.1-4-30-s
5 description: >
6 Strict Mode - SyntaxError is thrown if the identifier 'eval' appears as the
7 LeftHandSideExpression (PrimaryExpression) of simple assignment(=).
8 negative:
9 phase: parse
10 type: SyntaxError
11 flags: [onlyStrict]
12 ---*/
13
14 throw "Test262: This statement should not be evaluated.";
15
16 (eval) = 20;