func-decl-inside-func-decl-runtime.js (622B)
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 esid: use-strict-directive 6 es5id: 10.1.1-15-s 7 description: > 8 Strict Mode - Function code that is part of a FunctionDeclaration 9 is strict function code if FunctionDeclaration is contained in use 10 strict 11 flags: [noStrict] 12 ---*/ 13 14 function testcase() { 15 "use strict"; 16 function fun() { 17 test262unresolvable = null; 18 } 19 20 assert.throws(ReferenceError, function() { 21 fun(); 22 }); 23 } 24 testcase(); 25 26 reportCompare(0, 0);