Fix a test for TLA (#2319)

Fixes #2300
This commit is contained in:
Leo Balter 2019-08-29 17:20:50 -03:00 committed by GitHub
parent 7b1f479c8b
commit b63cdfd4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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();