Debian Codegraph @

js/src/tests/test262/language/statements/function/name-arguments-strict-body.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 /*---
6 es5id: 13.1-40-s
7 description: >
8 StrictMode - SyntaxError is thrown if 'arguments' occurs as the
9 Identifier of a FunctionDeclaration whose FunctionBody is
10 contained in strict code
11 negative:
12 phase: parse
13 type: SyntaxError
14 flags: [noStrict]
15 ---*/
16
17 $DONOTEVALUATE();
18
19 function arguments() { 'use strict'; }