summaryrefslogtreecommitdiff
path: root/test/suite/sputnik/Conformance/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A2.4.js
blob: 5368498a23fb604d2dd6be7f564374a18ac8b584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S7.3_A2.4;
 * @section: 7.3;
 * @assertion: PARAGRAPH SEPARATOR (U+2029) within strings is not allowed;
 * @description: Insert PARAGRAPH SEPARATOR (\u2029) into string;  
 * @negative
*/

// CHECK#1
if (eval("'\u2029str\u2029ing\u2029'") === "\u2029str\u2029ing\u2029") {
  $ERROR('#1: eval("\'\\u2029str\\u2029ing\\u2029\'") === "\\u2029str\\u2029ing\\u2029"');
}