diff options
Diffstat (limited to 'js/src/tests/test262/language/module-code/export-default-asyncfunction-declaration-binding-exists.js')
-rw-r--r-- | js/src/tests/test262/language/module-code/export-default-asyncfunction-declaration-binding-exists.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/export-default-asyncfunction-declaration-binding-exists.js b/js/src/tests/test262/language/module-code/export-default-asyncfunction-declaration-binding-exists.js new file mode 100644 index 0000000000..71b2d89320 --- /dev/null +++ b/js/src/tests/test262/language/module-code/export-default-asyncfunction-declaration-binding-exists.js @@ -0,0 +1,24 @@ +// |reftest| error:SyntaxError module +// Copyright (C) 2020 Rick Waldron. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + ExportDeclaration : HoistableDeclaration : AsyncFunctionDeclaration + esid: prod-HoistableDeclaration +info: | + ExportDeclaration : + HoistableDeclaration[Yield, Await, Default]: + + HoistableDeclaration[Yield, Await, Default]: + AsyncFunctionDeclaration[?Yield, ?Await, ?Default] + +flags: [module] +negative: + phase: parse + type: SyntaxError +---*/ + +$DONOTEVALUATE(); + +class A {}; +export default async function A() {} |