tor-browser

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

await-in-generator.js (387B)


      1 // Copyright 2016 Microsoft, Inc. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 author: Brian Terlson <brian.terlson@microsoft.com>
      6 esid: pending
      7 description: >
      8  Await in a generator is an identifier
      9 features: [generators]
     10 ---*/
     11 
     12 function* foo(await) { yield await; };
     13 assert.sameValue(foo(1).next().value, 1);
     14 
     15 reportCompare(0, 0);