Debian Codegraph @

js/src/tests/test262/language/directive-prologue/14.1-5gs.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 es5id: 14.1-5gs
6 description: >
7 StrictMode - a Use Strict Directive embedded in a directive
8 prologue followed by a strict mode violation
9 negative:
10 phase: parse
11 type: SyntaxError
12 flags: [raw]
13 ---*/
14
15 "a";
16 "use strict";
17 "c";
18 throw "Test262: This statement should not be evaluated.";
19 eval = 42;