summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/eval/line-terminator-paragraph-terminator.js
blob: 9a904073ab632bc83c705b12c41d0178fa5935a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

//-----------------------------------------------------------------------------
var BUGNUMBER = 657367;
var summary =
  "eval via the JSON parser should parse strings containing U+2028/U+2029 " +
  "(as of <https://tc39.github.io/proposal-json-superset/>, that is)";

print(BUGNUMBER + ": " + summary);

/**************
 * BEGIN TEST *
 **************/

assertEq(eval('("\u2028")'), "\u2028");
assertEq(eval('("\u2029")'), "\u2029");

/******************************************************************************/

if (typeof reportCompare === "function")
  reportCompare(true, true);

print("Tests complete!");