diff --git a/test/language/expressions/async-arrow-function/early-errors-arrow-formals-lineterminator.js b/test/language/expressions/async-arrow-function/early-errors-arrow-formals-lineterminator.js new file mode 100644 index 0000000000000000000000000000000000000000..3f3c1466c592af68568753f8899ae79bef1bbb3e --- /dev/null +++ b/test/language/expressions/async-arrow-function/early-errors-arrow-formals-lineterminator.js @@ -0,0 +1,13 @@ +// Copyright (C) 2017 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-AsyncArrowHead +description: async arrows cannot have a line terminator between "async" and the formals +negative: + phase: early + type: SyntaxError +---*/ + +async +(foo,bar) => { } diff --git a/test/language/expressions/async-arrow-function/early-errors-arrow-ident-lineterminator.js b/test/language/expressions/async-arrow-function/early-errors-arrow-ident-lineterminator.js new file mode 100644 index 0000000000000000000000000000000000000000..9905be53a391b62df1bafc9bb02870201b5b2064 --- /dev/null +++ b/test/language/expressions/async-arrow-function/early-errors-arrow-ident-lineterminator.js @@ -0,0 +1,13 @@ +// Copyright (C) 2017 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-AsyncArrowFunction +description: async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier +negative: + phase: early + type: ReferenceError +---*/ + +async +foo => { } diff --git a/test/language/expressions/object/method-definition/early-errors-object-method-async-lineterminator.js b/test/language/expressions/object/method-definition/early-errors-object-method-async-lineterminator.js new file mode 100644 index 0000000000000000000000000000000000000000..3c7fead37875ae41ab024239a9a28c90118c30c1 --- /dev/null +++ b/test/language/expressions/object/method-definition/early-errors-object-method-async-lineterminator.js @@ -0,0 +1,15 @@ +// Copyright (C) 2017 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-AsyncMethod +description: async methods cannot have a line terminator between "async" and the property name +negative: + phase: early + type: SyntaxError +---*/ + +{ + async + foo () { } +}