Commit 9a433cb4 authored by Leo Balter's avatar Leo Balter
Browse files

Bug 1374290 - Test262 export script. r=shu

--HG--
extra : rebase_source : aba4978548759eac0793e9bc04aaa4454864b457
parent f107cf6e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ TEST_FILES = \
  js1_8_1/ \
  js1_8_5/ \
  shell/ \
  test/ \
  test262/ \
  $(NULL)

+1 −0
Original line number Diff line number Diff line
PyYAML==3.12
+25 −0
Original line number Diff line number Diff line
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: |
  foo bar  baz
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
---*/

function f() {
    let
    await 0;
}
+22 −0
Original line number Diff line number Diff line
// 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.
---*/

eval(`
    function f() {
        let
        await 0;
    }
`);
+21 −0
Original line number Diff line number Diff line
// 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: []
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
---*/

function f() {
    let
    await 0;
}
Loading