Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / export-default-function-declaration-binding-exists.js
blob78fb19d7dd1c14fa84f2d5f20abfc814fd37c61d
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 : FunctionDeclaration
7   esid: prod-HoistableDeclaration
8 info: |
9   ExportDeclaration :
10     HoistableDeclaration[Yield, Await, Default]:
12   HoistableDeclaration[Yield, Await, Default]:
13     FunctionDeclaration[?Yield, ?Await, ?Default]
15 flags: [module]
16 negative:
17   phase: parse
18   type: SyntaxError
19 ---*/
21 $DONOTEVALUATE();
23 class F {}
24 export default function F() {}