tor-browser

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

cptn-decl.js (664B)


      1 // Copyright (C) 2017 Apple Inc. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-statement-semantics-runtime-semantics-evaluation
      5 description: Generator declaration completion value is empty.
      6 info: |
      7    GeneratorDeclaration[Yield, Await, Default]:
      8 
      9        function * BindingIdentifier[?Yield, ?Await] ( FormalParameters[+Yield, ~Await] ) { GeneratorBody }
     10 
     11    HoistableDeclaration : GeneratorDeclaration
     12 
     13    1. Return NormalCompletion(empty).
     14 features: [generators]
     15 ---*/
     16 
     17 assert.sameValue(eval('function* f() {}'), undefined);
     18 assert.sameValue(eval('1; function* f() {}'), 1);
     19 
     20 reportCompare(0, 0);