Debian Codegraph @

js/src/tests/test262/language/statements/variable/arguments-fn-strict-single-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2018 Mike Pennisi. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 es5id: 12.2.1-12-s
8 esid: sec-variable-statement
9 description: >
10 arguments as local var identifier throws SyntaxError in strict mode within a
11 function declaration
12 flags: [onlyStrict]
13 negative:
14 phase: parse
15 type: SyntaxError
16 ---*/
17
18 $DONOTEVALUATE();
19
20 function f() {
21 var arguments;
22 }