Debian Codegraph @

js/src/tests/test262/language/statements/variable/12.2.1-17-s-strict.js

raw
1 'use strict';
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: 12.2.1-17-s
7 description: >
8 A Function constructor (called as a function) assigning into
9 'arguments' will not throw any error if contained within strict
10 mode and its body does not start with strict mode
11 flags: [onlyStrict]
12 ---*/
13
14 var f = Function('arguments = 42;');
15 f();
16
17 reportCompare(0, 0);