func-decl-no-semi-runtime.js (474B)
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-2-s 7 description: > 8 Strict Mode - Use Strict Directive Prologue is ''use strict'' 9 which lost the last character ';' 10 flags: [noStrict] 11 ---*/ 12 13 function fun() { 14 "use strict" 15 test262unresolvable = null; 16 } 17 18 assert.throws(ReferenceError, function() { 19 fun(); 20 }); 21 22 reportCompare(0, 0);