Debian Codegraph @

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