tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

export-default-generator-declaration-binding.js (538B)


      1 // |reftest| 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 : GeneratorDeclaration
      7  esid: prod-HoistableDeclaration
      8 info: |
      9  ExportDeclaration :
     10    HoistableDeclaration[Yield, Await, Default]:
     11 
     12  HoistableDeclaration[Yield, Await, Default]:
     13    GeneratorDeclaration[?Yield, ?Await, ?Default]
     14 
     15 flags: [module]
     16 ---*/
     17 
     18 export default function * G() {}
     19 G.foo = '';
     20 
     21 reportCompare(0, 0);