summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/export-default-generator-declaration-binding.js
blob: c42d345f9c6946c29a0f7eda17ab7187e28f3cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |reftest| 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 : GeneratorDeclaration
  esid: prod-HoistableDeclaration
info: |
  ExportDeclaration :
    HoistableDeclaration[Yield, Await, Default]:

  HoistableDeclaration[Yield, Await, Default]:
    GeneratorDeclaration[?Yield, ?Await, ?Default]

flags: [module]
---*/

export default function * G() {}
G.foo = '';

reportCompare(0, 0);