Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/getter-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_6-2-2-s
5 description: >
6 Strict Mode - SyntaxError is thrown when an assignment to a
7 reserved word or a future reserved word is made inside a strict
8 mode FunctionBody of a 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 get x() {
19 "use strict";
20 public = 42;
21 }
22 };