Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/setter-body-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_7-2-2-s
5 description: >
6 Strict Mode - SyntaxError is thrown when an assignment to a
7 reserved word is made in a strict FunctionBody of a
8 PropertyAssignment
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(value) {
19 "use strict";
20 public = 42;
21 }
22 };