summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/literals/string/paragraph-separator-eval.js
blob: 88d7ae6ae90b0ba202b14c6c4fdd315a2e8e1440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2018 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
  U+2029 PARAGRAPH SEPARATOR can appear in string literals (eval code).
info: |
  11.8.4 String Literals

  All code points may appear literally in a string literal except for the
  closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN),
  and U+000A (LINE FEED).
features: [json-superset]
---*/

assert.sameValue(eval("'\u2029'"), "\u2029");

reportCompare(0, 0);