blob: 86cd60f4a5bf5c296e264a8b3d4ea683a04ae935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.3.2.1-11-4-s
description: >
Function constructor call from strict code with formal parameter
named 'eval' does not throws SyntaxError if function body is not
strict mode
flags: [onlyStrict]
includes: [runTestCase.js]
---*/
function testcase() {
try {
Function('eval', 'return;');
return true;
} catch (e) {
return false;
}
}
runTestCase(testcase);
|