summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test/expected/export
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test/expected/export')
-rw-r--r--js/src/tests/test/expected/export/multi-header.js12
-rw-r--r--js/src/tests/test/expected/export/reftest-and-frontmatter-error.js9
-rw-r--r--js/src/tests/test/expected/export/reftest-error-syntaxerror.js11
-rw-r--r--js/src/tests/test/expected/export/regular.js2
4 files changed, 16 insertions, 18 deletions
diff --git a/js/src/tests/test/expected/export/multi-header.js b/js/src/tests/test/expected/export/multi-header.js
index 477395713d..ea6c25ca88 100644
--- a/js/src/tests/test/expected/export/multi-header.js
+++ b/js/src/tests/test/expected/export/multi-header.js
@@ -2,21 +2,21 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
-info: |
- foo bar baz
+author: Jeff Walden <jwalden+code@mit.edu>
+esid: sec-let-and-const-declarations
description: |
Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable
name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a
syntax error.
-author: Jeff Walden <jwalden+code@mit.edu>
negative:
phase: early
type: SyntaxError
-flags:
-- module
-esid: sec-let-and-const-declarations
features:
- foobar
+flags:
+- module
+info: |
+ foo bar baz
---*/
function f() {
diff --git a/js/src/tests/test/expected/export/reftest-and-frontmatter-error.js b/js/src/tests/test/expected/export/reftest-and-frontmatter-error.js
index 4966385662..8394ec7e51 100644
--- a/js/src/tests/test/expected/export/reftest-and-frontmatter-error.js
+++ b/js/src/tests/test/expected/export/reftest-and-frontmatter-error.js
@@ -1,17 +1,16 @@
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-
/*---
esid: sec-let-and-const-declarations
-features: []
-negative:
- phase: runtime
- type: SyntaxError
description: |
Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable
name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a
syntax error.
+negative:
+ phase: runtime
+ type: SyntaxError
+features: []
---*/
eval(`
diff --git a/js/src/tests/test/expected/export/reftest-error-syntaxerror.js b/js/src/tests/test/expected/export/reftest-error-syntaxerror.js
index 5cd5759f66..163c5b8a4d 100644
--- a/js/src/tests/test/expected/export/reftest-error-syntaxerror.js
+++ b/js/src/tests/test/expected/export/reftest-error-syntaxerror.js
@@ -1,18 +1,17 @@
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-
/*---
-negative:
- phase: early
- type: SyntaxError
author: Jeff Walden <jwalden+code@mit.edu>
-features: []
+esid: sec-let-and-const-declarations
description: |
Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable
name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a
syntax error.
-esid: sec-let-and-const-declarations
+features: []
+negative:
+ phase: early
+ type: SyntaxError
---*/
function f() {
diff --git a/js/src/tests/test/expected/export/regular.js b/js/src/tests/test/expected/export/regular.js
index b920a66a3c..4541ef37e5 100644
--- a/js/src/tests/test/expected/export/regular.js
+++ b/js/src/tests/test/expected/export/regular.js
@@ -3,11 +3,11 @@
/*---
author: Jeff Walden <jwalden+code@mit.edu>
+esid: sec-let-and-const-declarations
description: |
'|await| is excluded from LexicalDeclaration by grammar parameter, in AsyncFunction. Therefore
|let| followed by |await| inside AsyncFunction is an ASI opportunity, and this code
must parse without error.'
-esid: sec-let-and-const-declarations
---*/
async function f() {