Add json-superset feature

This commit is contained in:
Richard Gibson 2018-05-08 14:19:44 -04:00
parent ba124c31b2
commit dbc0c6b1cc
5 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,10 @@ numeric-separator-literal
String.prototype.matchAll
Symbol.matchAll
# ECMAScript ⊃ JSON
# https://github.com/tc39/proposal-json-superset
json-superset
# Intl.Locale
# https://github.com/tc39/proposal-intl-locale
Intl.Locale

View File

@ -11,6 +11,7 @@ info: |
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("'\u2028'"), "\u2028");

View File

@ -11,6 +11,7 @@ info: |
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]
---*/
// U+2028 in strings; UTF8(0x2028) = 0xE2 0x80 0xA8

View File

@ -11,6 +11,7 @@ info: |
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");

View File

@ -11,6 +11,7 @@ info: |
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]
---*/
// U+2029 in strings; UTF8(0x2029) = 0xE2 0x80 0xA9