2014-07-22 01:09:02 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
2015-07-17 17:42:45 +02:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
2014-07-22 01:09:02 +02:00
|
|
|
|
|
|
|
/*---
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 10.5-7-b-1-s
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Strict Mode - arguments object is immutable in eval'ed functions
|
|
|
|
flags: [onlyStrict]
|
|
|
|
---*/
|
|
|
|
|
2015-08-11 17:43:21 +02:00
|
|
|
assert.throws(SyntaxError, function() {
|
2023-09-13 13:34:46 +02:00
|
|
|
eval("(function _10_5_7_b_1_fun() { arguments = 10;} ());");
|
2015-08-11 17:43:21 +02:00
|
|
|
});
|