var-env-func-strict-source.js (493B)
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 es5id: 10.4.2.1-4-s 6 description: > 7 Strict Mode - Strict mode eval code cannot instantiate functions 8 in the variable environment of the caller to eval. 9 ---*/ 10 11 function testcase() { 12 eval("'use strict'; function _10_4_2_1_4_fun(){}"); 13 assert.sameValue(typeof _10_4_2_1_4_fun, "undefined"); 14 } 15 testcase(); 16 17 reportCompare(0, 0);