tor-browser

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

evaluation-body.js (413B)


      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  async function bodies are executed immediately (unlike generators)
      9 ---*/
     10 
     11 let called;
     12 async function foo() {
     13  called = true;
     14  await new Promise();
     15 }
     16 
     17 foo();
     18 assert(called);
     19 
     20 reportCompare(0, 0);