Debian Codegraph @

js/src/tests/test262/language/expressions/object/setter-param-arguments-strict-outside-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2012 Ecma International. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 es5id: 11.1.5-2-s
7 description: >
8 Strict Mode - SyntaxError is thrown when 'arguments' occurs as the
9 Identifier in a PropertySetParameterList of a PropertyAssignment
10 that is contained in strict code
11 negative:
12 phase: parse
13 type: SyntaxError
14 flags: [onlyStrict]
15 ---*/
16
17 $DONOTEVALUATE();
18
19 void {
20 set x(arguments) {}
21 };