mirror of https://github.com/tc39/test262.git
parent
7b1f479c8b
commit
b63cdfd4f4
|
@ -41,10 +41,9 @@ flags: [module, async]
|
|||
features: [top-level-await]
|
||||
---*/
|
||||
|
||||
function fn() { return 1; }
|
||||
function fn() { return 2; }
|
||||
await function fn() { return 3; };
|
||||
function fn() { return 42; }
|
||||
await function fn() { return 111; };
|
||||
|
||||
assert.sameValue(fn(), 2);
|
||||
assert.sameValue(fn(), 42);
|
||||
|
||||
$DONE();
|
||||
|
|
Loading…
Reference in New Issue