Debian Codegraph @

js/src/tests/test262/language/arguments-object/10.5-7-b-1-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: 10.5-7-b-1-s
7 description: Strict Mode - arguments object is immutable in eval'ed functions
8 flags: [onlyStrict]
9 ---*/
10
11 assert.throws(SyntaxError, function() {
12 eval("(function _10_5_7_b_1_fun() { arguments = 10;} ());");
13 });
14
15 reportCompare(0, 0);