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 8e5095c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
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 8e5095c

Please sign in to comment.