2018-05-07 22:59:55 +02:00
|
|
|
|
// 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.
|
|
|
|
|
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).
|
2018-05-08 20:19:44 +02:00
|
|
|
|
features: [json-superset]
|
2018-05-07 22:59:55 +02:00
|
|
|
|
---*/
|
|
|
|
|
|
|
|
|
|
// U+2029 in strings; UTF8(0x2029) = 0xE2 0x80 0xA9
|
|
|
|
|
assert.sameValue("
", "\u2029");
|