blob: 5e9fc3a6d5ae1dce6d48ecbeb354f8f5b4a19ae7 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright (c) 2012 Ecma International. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5es5id: 12.2.1-13-s
6description: arguments assignment throws SyntaxError in strict mode
7flags: [onlyStrict]
8---*/
9
10
11assert.throws(SyntaxError, function() {
12 eval('function foo() { arguments = 42; }; foo()');
13});