Skip to content

Commit

Permalink
Add json-superset feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed May 8, 2018
1 parent ba124c3 commit dbc0c6b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/language/literals/string/line-separator-eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
1 change: 1 addition & 0 deletions test/language/literals/string/line-separator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/language/literals/string/paragraph-separator-eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
1 change: 1 addition & 0 deletions test/language/literals/string/paragraph-separator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbc0c6b

Please sign in to comment.