Debian Codegraph @

js/src/tests/test262/language/directive-prologue/func-expr-inside-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-16-s
7 description: >
8 Strict Mode - Function code that is part of a FunctionExpression
9 is strict function code if FunctionExpression is contained in use
10 strict
11 flags: [noStrict]
12 ---*/
13
14 function testcase() {
15 "use strict";
16
17 assert.throws(ReferenceError, function() {
18 test262unresolvable = null;
19 });
20 }
21 testcase();
22
23 reportCompare(0, 0);