export-default-asyncgenerator-declaration-binding-exists.js (615B)
1 // |reftest| error:SyntaxError module 2 // Copyright (C) 2020 Rick Waldron. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 description: > 6 ExportDeclaration : HoistableDeclaration : AsyncGeneratorDeclaration 7 esid: prod-HoistableDeclaration 8 info: | 9 ExportDeclaration : 10 HoistableDeclaration[Yield, Await, Default]: 11 12 HoistableDeclaration[Yield, Await, Default]: 13 AsyncGeneratorDeclaration[?Yield, ?Await, ?Default] 14 15 flags: [module] 16 negative: 17 phase: parse 18 type: SyntaxError 19 ---*/ 20 21 $DONOTEVALUATE(); 22 23 class AG {} 24 export default async function * AG() {}