Debian Codegraph @

js/src/tests/test262/language/expressions/object/getter-body-strict-inside.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (c) 2012 Ecma International. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es5id: 11.1.5_6-2-2-s
6 description: >
7 Strict Mode - SyntaxError is thrown when an assignment to a
8 reserved word or a future reserved word is made inside a strict
9 mode FunctionBody of a PropertyAssignment
10 negative:
11 phase: parse
12 type: SyntaxError
13 flags: [noStrict]
14 ---*/
15
16 $DONOTEVALUATE();
17
18 void {
19 get x() {
20 "use strict";
21 public = 42;
22 }
23 };