summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.1_eval/S15.1.2.1_A2_T2.js
blob: da4450126f85a0168f60ed2b8e5f5ba7975f9643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S15.1.2.1_A2_T2;
 * @section: 15.1.2.1, 16;
 * @assertion: If the parse fails, throw a SyntaxError exception (but see also clause 16);
 * @description: Checking if execution of "eval("x = 1; x\u000A++")" fails; 
 * @negative 
*/

//CHECK#1
var x;
eval("x = 1; x\u000A++");