Debian Codegraph @

js/src/tests/test262/language/statements/function/13.0-17-s.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 Refer 13;
7 The production FunctionBody : SourceElementsopt is evaluated as follows:
8 es5id: 13.0-17-s
9 description: >
10 Strict Mode - SourceElements is not evaluated as strict mode code
11 when a Function constructor is contained in strict mode code
12 within eval code
13 flags: [noStrict]
14 ---*/
15
16 eval("'use strict'; var _13_0_17_fun = new Function('eval = 42;'); _13_0_17_fun();");
17
18 reportCompare(0, 0);