Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/setter-param-eval-strict-inside.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.1.5-3-s
5 description: >
6 Strict Mode - SyntaxError is thrown when 'evals' occurs as the
7 Identifier in a PropertySetParameterList of a PropertyAssignment
8 if its FunctionBody is strict code
9 negative:
10 type: SyntaxError
11 phase: parse
12 flags: [noStrict]
13 ---*/
14
15 throw "Test262: This statement should not be evaluated.";
16
17 void {
18 set x(eval) {
19 "use strict";
20 }
21 };