Debian Codegraph @

js/src/tests/test262/language/eval-code/indirect/parse-failure-2.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 info: If the parse fails, throw a SyntaxError exception (but see also clause 16)
6 esid: sec-performeval
7 es5id: 15.1.2.1_A2_T2
8 description: Checking if execution of "(0,eval)("x = 1; x\u000A++")" fails
9 negative:
10 phase: runtime
11 type: SyntaxError
12 ---*/
13
14 var x;
15 (0,eval)("x = 1; x\u000A++");