Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/11.1.5-1gs.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.1.5-1gs
6 description: >
7 Strict Mode - SyntaxError is thrown when 'eval' occurs as the
8 Identifier in a PropertySetParameterList of a PropertyAssignment
9 that is contained in strict code
10 negative:
11 phase: parse
12 type: SyntaxError
13 flags: [onlyStrict]
14 ---*/
15
16 throw "Test262: This statement should not be evaluated.";
17
18 var obj = { set _11_1_5_1_fun(eval) {}};