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 76843c3
Show file tree
Hide file tree
Showing 4 changed files with 28 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

# ECMAScript ⊃ JSON
# 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.

12 changes: 12 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,12 @@
// 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'");
'foo
bar
baz
qux';
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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'");
'foo
bar
baz
qux';

0 comments on commit 76843c3

Please sign in to comment.