Skip to content

Commit

Permalink
Add JSON ⊂ ECMAScript tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed May 7, 2018
1 parent 83d8153 commit 8145c86
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 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

# JSON ⊂ ECMAScript
# https://github.com/tc39/proposal-json-superset
json-superset

# Intl.Locale
# https://github.com/tc39/proposal-intl-locale
Intl.Locale
Expand Down
12 changes: 0 additions & 12 deletions test/language/line-terminators/S7.3_A2.3.js

This file was deleted.

11 changes: 11 additions & 0 deletions test/language/line-terminators/line-separator-string-literal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2018 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
LINE SEPARATOR (U+2028) is allowed within string literals.
features: [json-superset]
---*/

eval("'foo\u2028bar\u2028baz\u2028qux'");
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2018 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
PARAGRAPH SEPARATOR (U+2029) is allowed within string literals.
features: [json-superset]
---*/

eval("'foo\u2029bar\u2029baz\u2029qux'");

0 comments on commit 8145c86

Please sign in to comment.