From dbc0c6b1cc630250680bf5fdece62d83971bd83e Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 8 May 2018 14:19:44 -0400 Subject: [PATCH] Add json-superset feature --- features.txt | 4 ++++ test/language/literals/string/line-separator-eval.js | 1 + test/language/literals/string/line-separator.js | 1 + test/language/literals/string/paragraph-separator-eval.js | 1 + test/language/literals/string/paragraph-separator.js | 1 + 5 files changed, 8 insertions(+) diff --git a/features.txt b/features.txt index 7b3c74a5fe8..c1a145619ef 100644 --- a/features.txt +++ b/features.txt @@ -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 diff --git a/test/language/literals/string/line-separator-eval.js b/test/language/literals/string/line-separator-eval.js index b9bd4932bd8..c8f4b33cbcd 100644 --- a/test/language/literals/string/line-separator-eval.js +++ b/test/language/literals/string/line-separator-eval.js @@ -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"); diff --git a/test/language/literals/string/line-separator.js b/test/language/literals/string/line-separator.js index 619d70051c9..359b8977fcd 100644 --- a/test/language/literals/string/line-separator.js +++ b/test/language/literals/string/line-separator.js @@ -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 diff --git a/test/language/literals/string/paragraph-separator-eval.js b/test/language/literals/string/paragraph-separator-eval.js index 68840e74242..18e8df3a3f3 100644 --- a/test/language/literals/string/paragraph-separator-eval.js +++ b/test/language/literals/string/paragraph-separator-eval.js @@ -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"); diff --git a/test/language/literals/string/paragraph-separator.js b/test/language/literals/string/paragraph-separator.js index 9c3bf0896fe..5e0ab447606 100644 --- a/test/language/literals/string/paragraph-separator.js +++ b/test/language/literals/string/paragraph-separator.js @@ -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