Debian Codegraph @

js/src/tests/test262/language/directive-prologue/func-decl-runtime.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 esid: use-strict-directive
6 es5id: 10.1.1-19-s
7 description: >
8 Strict Mode - Function code of a FunctionDeclaration contains Use
9 Strict Directive which appears at the start of the block
10 flags: [noStrict]
11 ---*/
12
13 function fun() {
14 "use strict";
15
16 test262unresolvable = null;
17 }
18
19 assert.throws(ReferenceError, function() {
20 fun();
21 });
22
23 reportCompare(0, 0);