2015-07-17 17:43:09 +02:00

24 lines
609 B
JavaScript

// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 13.1-14-s
description: >
StrictMode - SyntaxError is thrown if 'arguments' occurs as the
Identifier of a FunctionExpression in strict mode
flags: [onlyStrict]
includes: [runTestCase.js]
---*/
function testcase() {
var _13_1_14_s = {};
try {
eval("_13_1_14_s.x = function arguments() {};");
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);