Debian Codegraph @

js/src/tests/test262/language/statements/async-function/evaluation-body.js

raw
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 <[email protected]>
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);