diff --git a/tests/Array rest spreading/case-value.js b/tests/Array rest spreading/case-value.js index 8dbba44..7ec902a 100644 --- a/tests/Array rest spreading/case-value.js +++ b/tests/Array rest spreading/case-value.js @@ -1 +1 @@ -async f => expect((await f(() => ["foo", "bar", "baz"]))).toEqual(["bar", "baz"]) \ No newline at end of file +expect((await f(() => ["foo", "bar", "baz"]))).toEqual(["bar", "baz"]); diff --git a/tests/Array spreading/case-value.js b/tests/Array spreading/case-value.js index 345ce80..68c15dd 100644 --- a/tests/Array spreading/case-value.js +++ b/tests/Array spreading/case-value.js @@ -1 +1 @@ -async f => expect((await f(() => ["baz"]))).toBe("baz") \ No newline at end of file +expect((await f(() => ["baz"]))).toBe("baz"); diff --git a/tests/Complex continuation ordering/case-result.js b/tests/Complex continuation ordering/case-result.js index 5f91f2d..81c10e7 100644 --- a/tests/Complex continuation ordering/case-result.js +++ b/tests/Complex continuation ordering/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toEqual(['start 1', 'start 2', 'wait 2', 'start 3', 'wait 3', 'stop 1', 'wait 3', 'stop 2', 'stop 3']) \ No newline at end of file +expect((await f())).toEqual(['start 1', 'start 2', 'wait 2', 'start 3', 'wait 3', 'stop 1', 'wait 3', 'stop 2', 'stop 3']); diff --git a/tests/Object spreading/case-value.js b/tests/Object spreading/case-value.js index 61a12b8..637c8cb 100644 --- a/tests/Object spreading/case-value.js +++ b/tests/Object spreading/case-value.js @@ -1 +1 @@ -async f => expect((await f(() => ({ bar: "baz" })))).toBe("baz") \ No newline at end of file +expect((await f(() => ({ bar: "baz" })))).toBe("baz"); diff --git a/tests/argument evaluation order/case-result.js b/tests/argument evaluation order/case-result.js index c44c9f9..6cbe54f 100644 --- a/tests/argument evaluation order/case-result.js +++ b/tests/argument evaluation order/case-result.js @@ -1 +1 @@ -async f => expect((await f(async (a, b, c) => a + b + c, () => 1, async _ => 2))).toBe(5) \ No newline at end of file +expect((await f(async (a, b, c) => a + b + c, () => 1, async _ => 2))).toBe(5); diff --git a/tests/arguments expression/case-none.js b/tests/arguments expression/case-none.js index ffbed00..2c8fb6b 100644 --- a/tests/arguments expression/case-none.js +++ b/tests/arguments expression/case-none.js @@ -1 +1 @@ -async f => expect((await f())).toBe(false) \ No newline at end of file +expect((await f())).toBe(false); diff --git a/tests/arguments expression/case-one.js b/tests/arguments expression/case-one.js index 5b001b1..cbeef14 100644 --- a/tests/arguments expression/case-one.js +++ b/tests/arguments expression/case-one.js @@ -1 +1 @@ -async f => expect((await f(async () => true))).toBe(true) \ No newline at end of file +expect((await f(async () => true))).toBe(true); diff --git a/tests/arguments expression/case-two.js b/tests/arguments expression/case-two.js index f6d26c5..9737a84 100644 --- a/tests/arguments expression/case-two.js +++ b/tests/arguments expression/case-two.js @@ -1 +1 @@ -async f => expect((await f(async () => false, async () => true))).toBe(true) \ No newline at end of file +expect((await f(async () => false, async () => true))).toBe(true); diff --git a/tests/arrow functions/case-false.js b/tests/arrow functions/case-false.js index e670306..7ea4b75 100644 --- a/tests/arrow functions/case-false.js +++ b/tests/arrow functions/case-false.js @@ -1 +1 @@ -async f => expect((await f(false))).toBe(false) \ No newline at end of file +expect((await f(false))).toBe(false); diff --git a/tests/arrow functions/case-true.js b/tests/arrow functions/case-true.js index 31904a5..adf6bb9 100644 --- a/tests/arrow functions/case-true.js +++ b/tests/arrow functions/case-true.js @@ -1 +1 @@ -async f => expect((await f(true))).toBe(true) \ No newline at end of file +expect((await f(true))).toBe(true); diff --git a/tests/assign to pattern/case-result.js b/tests/assign to pattern/case-result.js index 9e654c4..7cd92ce 100644 --- a/tests/assign to pattern/case-result.js +++ b/tests/assign to pattern/case-result.js @@ -1 +1 @@ -async f => expect((await f(async _ => ({ result: 4 })))).toBe(5) \ No newline at end of file +expect((await f(async _ => ({ result: 4 })))).toBe(5); \ No newline at end of file diff --git a/tests/assign to variable/case-result.js b/tests/assign to variable/case-result.js index f2a7891..886e03b 100644 --- a/tests/assign to variable/case-result.js +++ b/tests/assign to variable/case-result.js @@ -1 +1 @@ -async f => expect((await f(async _ => 4))).toBe(5) \ No newline at end of file +expect((await f(async _ => 4))).toBe(5); diff --git a/tests/async await with variable/case-result.js b/tests/async await with variable/case-result.js index 8544d12..988fc1e 100644 --- a/tests/async await with variable/case-result.js +++ b/tests/async await with variable/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toBe(true) \ No newline at end of file +expect((await f())).toBe(true); \ No newline at end of file diff --git a/tests/async await/case-result.js b/tests/async await/case-result.js index 8544d12..cdeff34 100644 --- a/tests/async await/case-result.js +++ b/tests/async await/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toBe(true) \ No newline at end of file +expect((await f())).toBe(true); diff --git a/tests/async iteration with break/case-exit.js b/tests/async iteration with break/case-exit.js index 2fff2a4..8b21d65 100644 --- a/tests/async iteration with break/case-exit.js +++ b/tests/async iteration with break/case-exit.js @@ -1 +1 @@ -async f => expect((await f(10))).toBe(-1) \ No newline at end of file +expect((await f(10))).toBe(-1); diff --git a/tests/async iteration with break/case-long.js b/tests/async iteration with break/case-long.js index 6c44994..031a214 100644 --- a/tests/async iteration with break/case-long.js +++ b/tests/async iteration with break/case-long.js @@ -1 +1 @@ -async f => expect((await f([3]))).toBe(3) \ No newline at end of file +expect((await f([3]))).toBe(3); diff --git a/tests/async iteration with break/case-short.js b/tests/async iteration with break/case-short.js index b1cec75..665c724 100644 --- a/tests/async iteration with break/case-short.js +++ b/tests/async iteration with break/case-short.js @@ -1 +1 @@ -async f => expect((await f(1))).toBe(0) \ No newline at end of file +expect((await f(1))).toBe(0); diff --git a/tests/async iteration with try catch/case-exit.js b/tests/async iteration with try catch/case-exit.js index 2fff2a4..8b21d65 100644 --- a/tests/async iteration with try catch/case-exit.js +++ b/tests/async iteration with try catch/case-exit.js @@ -1 +1 @@ -async f => expect((await f(10))).toBe(-1) \ No newline at end of file +expect((await f(10))).toBe(-1); diff --git a/tests/async iteration with try catch/case-long.js b/tests/async iteration with try catch/case-long.js index 6c44994..031a214 100644 --- a/tests/async iteration with try catch/case-long.js +++ b/tests/async iteration with try catch/case-long.js @@ -1 +1 @@ -async f => expect((await f([3]))).toBe(3) \ No newline at end of file +expect((await f([3]))).toBe(3); diff --git a/tests/async iteration with try catch/case-short.js b/tests/async iteration with try catch/case-short.js index b1cec75..16bcbd2 100644 --- a/tests/async iteration with try catch/case-short.js +++ b/tests/async iteration with try catch/case-short.js @@ -1 +1 @@ -async f => expect((await f(1))).toBe(0) \ No newline at end of file +expect((await f(1))).toBe(0) \ No newline at end of file diff --git a/tests/async iteration/case-empty.js b/tests/async iteration/case-empty.js index 8b5e5e6..56aaa96 100644 --- a/tests/async iteration/case-empty.js +++ b/tests/async iteration/case-empty.js @@ -1 +1 @@ -async f => expect((await f(0))).toBe(0) \ No newline at end of file +expect((await f(0))).toBe(0) \ No newline at end of file diff --git a/tests/async iteration/case-multiple.js b/tests/async iteration/case-multiple.js index ed74414..4ecfbec 100644 --- a/tests/async iteration/case-multiple.js +++ b/tests/async iteration/case-multiple.js @@ -1 +1 @@ -async f => expect((await f(2))).toBe(1) \ No newline at end of file +expect((await f(2))).toBe(1) \ No newline at end of file diff --git a/tests/async iteration/case-single.js b/tests/async iteration/case-single.js index 10cb37b..7075554 100644 --- a/tests/async iteration/case-single.js +++ b/tests/async iteration/case-single.js @@ -1 +1 @@ -async f => expect((await f([1]))).toBe(0) \ No newline at end of file +expect((await f([1]))).toBe(0); \ No newline at end of file diff --git a/tests/await binary and logical/case-seven.js b/tests/await binary and logical/case-seven.js index 3832fef..ab5dadc 100644 --- a/tests/await binary and logical/case-seven.js +++ b/tests/await binary and logical/case-seven.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0, async _ => true, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(async _ => 0, async _ => true, async _ => 2))).toBe(0); diff --git a/tests/await binary and logical/case-two.js b/tests/await binary and logical/case-two.js index 7f2b191..699cd7f 100644 --- a/tests/await binary and logical/case-two.js +++ b/tests/await binary and logical/case-two.js @@ -1 +1 @@ -async f => expect((await f(async _ => 3, async _ => false, async _ => 5))).toBe(5) \ No newline at end of file +expect((await f(async _ => 3, async _ => false, async _ => 5))).toBe(5) \ No newline at end of file diff --git a/tests/await binary both/case-seven.js b/tests/await binary both/case-seven.js index 3c57d6b..ebe1194 100644 --- a/tests/await binary both/case-seven.js +++ b/tests/await binary both/case-seven.js @@ -1 +1 @@ -async f => expect((await f(async _ => 5, async _ => 2))).toBe(7) \ No newline at end of file +expect((await f(async _ => 5, async _ => 2))).toBe(7) \ No newline at end of file diff --git a/tests/await binary both/case-two.js b/tests/await binary both/case-two.js index e4e4fb3..7420d46 100644 --- a/tests/await binary both/case-two.js +++ b/tests/await binary both/case-two.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(async _ => 0, async _ => 2))).toBe(2); diff --git a/tests/await binary left/case-seven.js b/tests/await binary left/case-seven.js index b313b12..bf21a2b 100644 --- a/tests/await binary left/case-seven.js +++ b/tests/await binary left/case-seven.js @@ -1 +1 @@ -async f => expect((await f(async _ => 5, _ => 2))).toBe(7) \ No newline at end of file +expect((await f(async _ => 5, _ => 2))).toBe(7) \ No newline at end of file diff --git a/tests/await binary left/case-two.js b/tests/await binary left/case-two.js index 17ded36..a1ac5ea 100644 --- a/tests/await binary left/case-two.js +++ b/tests/await binary left/case-two.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0, _ => 2))).toBe(2) \ No newline at end of file +expect((await f(async _ => 0, _ => 2))).toBe(2); diff --git a/tests/await binary right/case-seven.js b/tests/await binary right/case-seven.js index f4609cd..1149f01 100644 --- a/tests/await binary right/case-seven.js +++ b/tests/await binary right/case-seven.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(7) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(7) \ No newline at end of file diff --git a/tests/await binary right/case-two.js b/tests/await binary right/case-two.js index 909e7a3..efff92e 100644 --- a/tests/await binary right/case-two.js +++ b/tests/await binary right/case-two.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await binary statement scope/case-seven.js b/tests/await binary statement scope/case-seven.js index f4609cd..1149f01 100644 --- a/tests/await binary statement scope/case-seven.js +++ b/tests/await binary statement scope/case-seven.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(7) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(7) \ No newline at end of file diff --git a/tests/await binary statement scope/case-two.js b/tests/await binary statement scope/case-two.js index 909e7a3..efff92e 100644 --- a/tests/await binary statement scope/case-two.js +++ b/tests/await binary statement scope/case-two.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical both/case-false.js b/tests/await logical both/case-false.js index 9bdb90d..a937c62 100644 --- a/tests/await logical both/case-false.js +++ b/tests/await logical both/case-false.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(async _ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical both/case-true.js b/tests/await logical both/case-true.js index c6dbfaa..1c24f1f 100644 --- a/tests/await logical both/case-true.js +++ b/tests/await logical both/case-true.js @@ -1 +1 @@ -async f => expect((await f(async _ => 5, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(async _ => 5, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical complex left/case-false.js b/tests/await logical complex left/case-false.js index 04c1e3f..cb3c00f 100644 --- a/tests/await logical complex left/case-false.js +++ b/tests/await logical complex left/case-false.js @@ -1 +1 @@ -async f => expect((await f(async _ => -1, _ => 2))).toBe(0) \ No newline at end of file +expect((await f(async _ => -1, _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical complex left/case-true.js b/tests/await logical complex left/case-true.js index 7bacb73..8ecf5f3 100644 --- a/tests/await logical complex left/case-true.js +++ b/tests/await logical complex left/case-true.js @@ -1 +1 @@ -async f => expect((await f(async _ => 5, _ => 2))).toBe(2) \ No newline at end of file +expect((await f(async _ => 5, _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical complex right/case-false.js b/tests/await logical complex right/case-false.js index bfb4274..b047c36 100644 --- a/tests/await logical complex right/case-false.js +++ b/tests/await logical complex right/case-false.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical complex right/case-true.js b/tests/await logical complex right/case-true.js index edbcd4a..b9ebdeb 100644 --- a/tests/await logical complex right/case-true.js +++ b/tests/await logical complex right/case-true.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(3) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(3) \ No newline at end of file diff --git a/tests/await logical left/case-false.js b/tests/await logical left/case-false.js index 78b9251..7d376ce 100644 --- a/tests/await logical left/case-false.js +++ b/tests/await logical left/case-false.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0, _ => 2))).toBe(0) \ No newline at end of file +expect((await f(async _ => 0, _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical left/case-true.js b/tests/await logical left/case-true.js index 7bacb73..8ecf5f3 100644 --- a/tests/await logical left/case-true.js +++ b/tests/await logical left/case-true.js @@ -1 +1 @@ -async f => expect((await f(async _ => 5, _ => 2))).toBe(2) \ No newline at end of file +expect((await f(async _ => 5, _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical right optimized/case-false.js b/tests/await logical right optimized/case-false.js index bfb4274..b047c36 100644 --- a/tests/await logical right optimized/case-false.js +++ b/tests/await logical right optimized/case-false.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical right optimized/case-true.js b/tests/await logical right optimized/case-true.js index 0a7fbf5..08930ee 100644 --- a/tests/await logical right optimized/case-true.js +++ b/tests/await logical right optimized/case-true.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical right/case-false.js b/tests/await logical right/case-false.js index bfb4274..b047c36 100644 --- a/tests/await logical right/case-false.js +++ b/tests/await logical right/case-false.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical right/case-true.js b/tests/await logical right/case-true.js index 0a7fbf5..08930ee 100644 --- a/tests/await logical right/case-true.js +++ b/tests/await logical right/case-true.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical statement if/case-false.js b/tests/await logical statement if/case-false.js index bfb4274..b047c36 100644 --- a/tests/await logical statement if/case-false.js +++ b/tests/await logical statement if/case-false.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical statement if/case-true.js b/tests/await logical statement if/case-true.js index 0a7fbf5..08930ee 100644 --- a/tests/await logical statement if/case-true.js +++ b/tests/await logical statement if/case-true.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical statement scope optimized/case-false.js b/tests/await logical statement scope optimized/case-false.js index bfb4274..b047c36 100644 --- a/tests/await logical statement scope optimized/case-false.js +++ b/tests/await logical statement scope optimized/case-false.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical statement scope optimized/case-true.js b/tests/await logical statement scope optimized/case-true.js index 0a7fbf5..08930ee 100644 --- a/tests/await logical statement scope optimized/case-true.js +++ b/tests/await logical statement scope optimized/case-true.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/await logical statement scope/case-false.js b/tests/await logical statement scope/case-false.js index bfb4274..b047c36 100644 --- a/tests/await logical statement scope/case-false.js +++ b/tests/await logical statement scope/case-false.js @@ -1 +1 @@ -async f => expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file +expect((await f(_ => 0, async _ => 2))).toBe(0) \ No newline at end of file diff --git a/tests/await logical statement scope/case-true.js b/tests/await logical statement scope/case-true.js index 0a7fbf5..08930ee 100644 --- a/tests/await logical statement scope/case-true.js +++ b/tests/await logical statement scope/case-true.js @@ -1 +1 @@ -async f => expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file +expect((await f(_ => 5, async _ => 2))).toBe(2) \ No newline at end of file diff --git a/tests/basic async/case-result.js b/tests/basic async/case-result.js index 8544d12..961db5d 100644 --- a/tests/basic async/case-result.js +++ b/tests/basic async/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toBe(true) \ No newline at end of file +expect((await f())).toBe(true) \ No newline at end of file diff --git a/tests/break labeled statement/case-false.js b/tests/break labeled statement/case-false.js index cdd3ed1..2d9fa49 100644 --- a/tests/break labeled statement/case-false.js +++ b/tests/break labeled statement/case-false.js @@ -1 +1 @@ -async f => expect((await f(() => 0))).toEqual(false) \ No newline at end of file +expect((await f(() => 0))).toEqual(false) \ No newline at end of file diff --git a/tests/break labeled statement/case-true.js b/tests/break labeled statement/case-true.js index 2cc160c..b6173dc 100644 --- a/tests/break labeled statement/case-true.js +++ b/tests/break labeled statement/case-true.js @@ -1 +1 @@ -async f => expect((await f(() => 1))).toEqual(true) \ No newline at end of file +expect((await f(() => 1))).toEqual(true) \ No newline at end of file diff --git a/tests/break with multiple labeled statements/case-false.js b/tests/break with multiple labeled statements/case-false.js index cdd3ed1..2d9fa49 100644 --- a/tests/break with multiple labeled statements/case-false.js +++ b/tests/break with multiple labeled statements/case-false.js @@ -1 +1 @@ -async f => expect((await f(() => 0))).toEqual(false) \ No newline at end of file +expect((await f(() => 0))).toEqual(false) \ No newline at end of file diff --git a/tests/break with multiple labeled statements/case-true.js b/tests/break with multiple labeled statements/case-true.js index 2cc160c..b6173dc 100644 --- a/tests/break with multiple labeled statements/case-true.js +++ b/tests/break with multiple labeled statements/case-true.js @@ -1 +1 @@ -async f => expect((await f(() => 1))).toEqual(true) \ No newline at end of file +expect((await f(() => 1))).toEqual(true) \ No newline at end of file diff --git a/tests/call chains/case-result.js b/tests/call chains/case-result.js index 3ac16ab..b965a37 100644 --- a/tests/call chains/case-result.js +++ b/tests/call chains/case-result.js @@ -1 +1 @@ -async f => expect((await f((b, c) => b + c, async _ => 2, async _ => 3))).toBe(5) \ No newline at end of file +expect((await f((b, c) => b + c, async _ => 2, async _ => 3))).toBe(5) \ No newline at end of file diff --git a/tests/call member expression/case-result.js b/tests/call member expression/case-result.js index b32fbad..d882a46 100644 --- a/tests/call member expression/case-result.js +++ b/tests/call member expression/case-result.js @@ -1 +1 @@ -async f => expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1) \ No newline at end of file +expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1) \ No newline at end of file diff --git a/tests/call non-pure member expression/case-result.js b/tests/call non-pure member expression/case-result.js index b32fbad..d882a46 100644 --- a/tests/call non-pure member expression/case-result.js +++ b/tests/call non-pure member expression/case-result.js @@ -1 +1 @@ -async f => expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1) \ No newline at end of file +expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1) \ No newline at end of file diff --git a/tests/calling member functions directly/case-normal.js b/tests/calling member functions directly/case-normal.js index 34e9e7a..4f8df03 100644 --- a/tests/calling member functions directly/case-normal.js +++ b/tests/calling member functions directly/case-normal.js @@ -1 +1 @@ -async f => expect((await f(async _ => true, { baz: arg => arg }))).toBe(true) \ No newline at end of file +expect((await f(async _ => true, { baz: arg => arg }))).toBe(true) \ No newline at end of file diff --git a/tests/calling member functions via computed expression/case-normal.js b/tests/calling member functions via computed expression/case-normal.js index 4d7aaaa..99e9663 100644 --- a/tests/calling member functions via computed expression/case-normal.js +++ b/tests/calling member functions via computed expression/case-normal.js @@ -1 +1 @@ -async f => expect((await f(async _ => true, { baz: arg => arg }, "baz"))).toBe(true) \ No newline at end of file +expect((await f(async _ => true, { baz: arg => arg }, "baz"))).toBe(true) \ No newline at end of file diff --git a/tests/calling member functions via computed literal/case-normal.js b/tests/calling member functions via computed literal/case-normal.js index 34e9e7a..4f8df03 100644 --- a/tests/calling member functions via computed literal/case-normal.js +++ b/tests/calling member functions via computed literal/case-normal.js @@ -1 +1 @@ -async f => expect((await f(async _ => true, { baz: arg => arg }))).toBe(true) \ No newline at end of file +expect((await f(async _ => true, { baz: arg => arg }))).toBe(true) \ No newline at end of file diff --git a/tests/catch and await/case-fallback.js b/tests/catch and await/case-fallback.js index f033f7a..761e508 100644 --- a/tests/catch and await/case-fallback.js +++ b/tests/catch and await/case-fallback.js @@ -1,3 +1,3 @@ -async f => expect((await f(async _ => { +expect((await f(async _ => { throw "test"; }, async _ => false))).toBe(undefined) \ No newline at end of file diff --git a/tests/catch and await/case-success.js b/tests/catch and await/case-success.js index cd74d84..d1b5a4e 100644 --- a/tests/catch and await/case-success.js +++ b/tests/catch and await/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success", async _ => false))).toBe("success") \ No newline at end of file +expect((await f(async _ => "success", async _ => false))).toBe("success") \ No newline at end of file diff --git a/tests/catch and ignore/case-fallback.js b/tests/catch and ignore/case-fallback.js index 8dd3c3d..6f334cd 100644 --- a/tests/catch and ignore/case-fallback.js +++ b/tests/catch and ignore/case-fallback.js @@ -1,3 +1,3 @@ -async f => expect((await f(async _ => { +expect((await f(async _ => { throw "test"; }))).toBe(undefined) \ No newline at end of file diff --git a/tests/catch and ignore/case-success.js b/tests/catch and ignore/case-success.js index 79d897e..a44d235 100644 --- a/tests/catch and ignore/case-success.js +++ b/tests/catch and ignore/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success"))).toBe("success") \ No newline at end of file +expect((await f(async _ => "success"))).toBe("success") \ No newline at end of file diff --git a/tests/catch and recover via optimized return/case-fallback.js b/tests/catch and recover via optimized return/case-fallback.js index 665a3d8..61ad64e 100644 --- a/tests/catch and recover via optimized return/case-fallback.js +++ b/tests/catch and recover via optimized return/case-fallback.js @@ -1,3 +1,3 @@ -async f => expect((await f(_ => { +expect((await f(_ => { throw "test"; }, () => "fallback"))).toBe("fallback") \ No newline at end of file diff --git a/tests/catch and recover via optimized return/case-success.js b/tests/catch and recover via optimized return/case-success.js index 568e25e..8ee204d 100644 --- a/tests/catch and recover via optimized return/case-success.js +++ b/tests/catch and recover via optimized return/case-success.js @@ -1 +1 @@ -async f => expect((await f(_ => "success"))).toBe("success") \ No newline at end of file +expect((await f(_ => "success"))).toBe("success") \ No newline at end of file diff --git a/tests/catch and recover via return/case-fallback.js b/tests/catch and recover via return/case-fallback.js index de208c8..3306192 100644 --- a/tests/catch and recover via return/case-fallback.js +++ b/tests/catch and recover via return/case-fallback.js @@ -1,3 +1,3 @@ -async f => expect((await f(async _ => { +expect((await f(async _ => { throw "test"; }))).toBe("fallback") \ No newline at end of file diff --git a/tests/catch and recover via return/case-success.js b/tests/catch and recover via return/case-success.js index 79d897e..a44d235 100644 --- a/tests/catch and recover via return/case-success.js +++ b/tests/catch and recover via return/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success"))).toBe("success") \ No newline at end of file +expect((await f(async _ => "success"))).toBe("success") \ No newline at end of file diff --git a/tests/catch and recover via variable/case-recover.js b/tests/catch and recover via variable/case-recover.js index f7a9370..5cbf04c 100644 --- a/tests/catch and recover via variable/case-recover.js +++ b/tests/catch and recover via variable/case-recover.js @@ -1,3 +1,3 @@ -async f => expect((await f(async _ => { +expect((await f(async _ => { throw "test"; }, async _ => false))).toBe("an error") \ No newline at end of file diff --git a/tests/catch and recover via variable/case-success.js b/tests/catch and recover via variable/case-success.js index cd74d84..d1b5a4e 100644 --- a/tests/catch and recover via variable/case-success.js +++ b/tests/catch and recover via variable/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success", async _ => false))).toBe("success") \ No newline at end of file +expect((await f(async _ => "success", async _ => false))).toBe("success") \ No newline at end of file diff --git a/tests/class methods/case-class method.js b/tests/class methods/case-class method.js index b7fcbe8..9b0a9c2 100644 --- a/tests/class methods/case-class method.js +++ b/tests/class methods/case-class method.js @@ -1 +1 @@ -async f => expect((await f().bar(async () => true))).toBe(true) \ No newline at end of file +expect((await f().bar(async () => true))).toBe(true) \ No newline at end of file diff --git a/tests/class methods/case-method.js b/tests/class methods/case-method.js index 4dfdd4c..ce35c88 100644 --- a/tests/class methods/case-method.js +++ b/tests/class methods/case-method.js @@ -1 +1 @@ -async f => expect((await new (f())().foo(async () => true))).toBe(true) \ No newline at end of file +expect((await new (f())().foo(async () => true))).toBe(true) \ No newline at end of file diff --git a/tests/complex hoisting/case-alternate.js b/tests/complex hoisting/case-alternate.js index beae6f9..65a1ad8 100644 --- a/tests/complex hoisting/case-alternate.js +++ b/tests/complex hoisting/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/complex hoisting/case-consequent.js b/tests/complex hoisting/case-consequent.js index 5253ff9..df1fa3b 100644 --- a/tests/complex hoisting/case-consequent.js +++ b/tests/complex hoisting/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/compound variable declarator optimized bail-out/case-result.js b/tests/compound variable declarator optimized bail-out/case-result.js index f7a718a..cd99f29 100644 --- a/tests/compound variable declarator optimized bail-out/case-result.js +++ b/tests/compound variable declarator optimized bail-out/case-result.js @@ -1 +1 @@ -async f => expect((await f(() => 1, async _ => 2))).toBe(6) \ No newline at end of file +expect((await f(() => 1, async _ => 2))).toBe(6) \ No newline at end of file diff --git a/tests/compound variable declarator optimized/case-result.js b/tests/compound variable declarator optimized/case-result.js index 3c9bfd0..4adb8f5 100644 --- a/tests/compound variable declarator optimized/case-result.js +++ b/tests/compound variable declarator optimized/case-result.js @@ -1 +1 @@ -async f => expect((await f(async _ => 2))).toBe(6) \ No newline at end of file +expect((await f(async _ => 2))).toBe(6) \ No newline at end of file diff --git a/tests/compound variable declarator/case-result.js b/tests/compound variable declarator/case-result.js index f7a718a..cd99f29 100644 --- a/tests/compound variable declarator/case-result.js +++ b/tests/compound variable declarator/case-result.js @@ -1 +1 @@ -async f => expect((await f(() => 1, async _ => 2))).toBe(6) \ No newline at end of file +expect((await f(() => 1, async _ => 2))).toBe(6) \ No newline at end of file diff --git a/tests/empty function with unused declaration/case-result.js b/tests/empty function with unused declaration/case-result.js index 508c12d..301fe1d 100644 --- a/tests/empty function with unused declaration/case-result.js +++ b/tests/empty function with unused declaration/case-result.js @@ -1,4 +1,4 @@ -async f => { +{ const result = f(); expect(result.constructor).toBe(Promise); expect((await result)).toBe(undefined); diff --git a/tests/empty function/case-result.js b/tests/empty function/case-result.js index 508c12d..301fe1d 100644 --- a/tests/empty function/case-result.js +++ b/tests/empty function/case-result.js @@ -1,4 +1,4 @@ -async f => { +{ const result = f(); expect(result.constructor).toBe(Promise); expect((await result)).toBe(undefined); diff --git a/tests/finally double/case-recover.js b/tests/finally double/case-recover.js index 84e1577..0819040 100644 --- a/tests/finally double/case-recover.js +++ b/tests/finally double/case-recover.js @@ -1,3 +1,3 @@ -async f => expect((await f(async _ => { +expect((await f(async _ => { throw "test"; }, _ => undefined))).toBe("suppressed") \ No newline at end of file diff --git a/tests/finally double/case-success.js b/tests/finally double/case-success.js index fb41ff4..cc732fc 100644 --- a/tests/finally double/case-success.js +++ b/tests/finally double/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success", _ => undefined))).toBe("suppressed") \ No newline at end of file +expect((await f(async _ => "success", _ => undefined))).toBe("suppressed") \ No newline at end of file diff --git a/tests/finally passthrough/case-success.js b/tests/finally passthrough/case-success.js index ac6fc42..785f0c7 100644 --- a/tests/finally passthrough/case-success.js +++ b/tests/finally passthrough/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success", _ => undefined))).toBe("success") \ No newline at end of file +expect((await f(async _ => "success", _ => undefined))).toBe("success") \ No newline at end of file diff --git a/tests/finally suppress original return/case-recover.js b/tests/finally suppress original return/case-recover.js index 84e1577..0819040 100644 --- a/tests/finally suppress original return/case-recover.js +++ b/tests/finally suppress original return/case-recover.js @@ -1,3 +1,3 @@ -async f => expect((await f(async _ => { +expect((await f(async _ => { throw "test"; }, _ => undefined))).toBe("suppressed") \ No newline at end of file diff --git a/tests/finally suppress original return/case-success.js b/tests/finally suppress original return/case-success.js index fb41ff4..cc732fc 100644 --- a/tests/finally suppress original return/case-success.js +++ b/tests/finally suppress original return/case-success.js @@ -1 +1 @@ -async f => expect((await f(async _ => "success", _ => undefined))).toBe("suppressed") \ No newline at end of file +expect((await f(async _ => "success", _ => undefined))).toBe("suppressed") \ No newline at end of file diff --git a/tests/for await of in body with break/case-break.js b/tests/for await of in body with break/case-break.js index 005dbf7..5bdfffd 100644 --- a/tests/for await of in body with break/case-break.js +++ b/tests/for await of in body with break/case-break.js @@ -1 +1 @@ -async f => expect((await f([1, 10, 4]))).toBe(11) \ No newline at end of file +expect((await f([1, 10, 4]))).toBe(11) \ No newline at end of file diff --git a/tests/for await of in body with break/case-empty.js b/tests/for await of in body with break/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for await of in body with break/case-empty.js +++ b/tests/for await of in body with break/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for await of in body with break/case-multiple.js b/tests/for await of in body with break/case-multiple.js index 6b8f101..e6b7631 100644 --- a/tests/for await of in body with break/case-multiple.js +++ b/tests/for await of in body with break/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([1, 2]))).toBe(3) \ No newline at end of file +expect((await f([1, 2]))).toBe(3) \ No newline at end of file diff --git a/tests/for await of in body with break/case-single.js b/tests/for await of in body with break/case-single.js index 4f50332..b121afc 100644 --- a/tests/for await of in body with break/case-single.js +++ b/tests/for await of in body with break/case-single.js @@ -1 +1 @@ -async f => expect((await f([1]))).toBe(1) \ No newline at end of file +expect((await f([1]))).toBe(1) \ No newline at end of file diff --git a/tests/for await of in body/case-empty.js b/tests/for await of in body/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for await of in body/case-empty.js +++ b/tests/for await of in body/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for await of in body/case-multiple.js b/tests/for await of in body/case-multiple.js index 6b8f101..e6b7631 100644 --- a/tests/for await of in body/case-multiple.js +++ b/tests/for await of in body/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([1, 2]))).toBe(3) \ No newline at end of file +expect((await f([1, 2]))).toBe(3) \ No newline at end of file diff --git a/tests/for await of in body/case-single.js b/tests/for await of in body/case-single.js index 4f50332..b121afc 100644 --- a/tests/for await of in body/case-single.js +++ b/tests/for await of in body/case-single.js @@ -1 +1 @@ -async f => expect((await f([1]))).toBe(1) \ No newline at end of file +expect((await f([1]))).toBe(1) \ No newline at end of file diff --git a/tests/for await of pattern in body/case-empty.js b/tests/for await of pattern in body/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for await of pattern in body/case-empty.js +++ b/tests/for await of pattern in body/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for await of pattern in body/case-multiple.js b/tests/for await of pattern in body/case-multiple.js index c33dde3..f200550 100644 --- a/tests/for await of pattern in body/case-multiple.js +++ b/tests/for await of pattern in body/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([{ value: 1 }, { value: 2 }]))).toBe(3) \ No newline at end of file +expect((await f([{ value: 1 }, { value: 2 }]))).toBe(3) \ No newline at end of file diff --git a/tests/for await of pattern in body/case-single.js b/tests/for await of pattern in body/case-single.js index f88d87b..d17f630 100644 --- a/tests/for await of pattern in body/case-single.js +++ b/tests/for await of pattern in body/case-single.js @@ -1 +1 @@ -async f => expect((await f([{ value: 1 }]))).toBe(1) \ No newline at end of file +expect((await f([{ value: 1 }]))).toBe(1) \ No newline at end of file diff --git a/tests/for loop hoisting/case-value.js b/tests/for loop hoisting/case-value.js index 0e8c75c..1ea4954 100644 --- a/tests/for loop hoisting/case-value.js +++ b/tests/for loop hoisting/case-value.js @@ -1 +1 @@ -async f => expect((await f(() => true))).toBe(true) \ No newline at end of file +expect((await f(() => true))).toBe(true) \ No newline at end of file diff --git a/tests/for of await double with break and two labels/case-empty.js b/tests/for of await double with break and two labels/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for of await double with break and two labels/case-empty.js +++ b/tests/for of await double with break and two labels/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for of await double with break and two labels/case-inner.js b/tests/for of await double with break and two labels/case-inner.js index df61753..e494686 100644 --- a/tests/for of await double with break and two labels/case-inner.js +++ b/tests/for of await double with break and two labels/case-inner.js @@ -1 +1 @@ -async f => expect((await f([[-1, 10], [5, 4]]))).toBe(8) \ No newline at end of file +expect((await f([[-1, 10], [5, 4]]))).toBe(8) \ No newline at end of file diff --git a/tests/for of await double with break and two labels/case-multiple.js b/tests/for of await double with break and two labels/case-multiple.js index 6c5976e..28fdb8f 100644 --- a/tests/for of await double with break and two labels/case-multiple.js +++ b/tests/for of await double with break and two labels/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([[1, 2], [3, 4]]))).toBe(10) \ No newline at end of file +expect((await f([[1, 2], [3, 4]]))).toBe(10) \ No newline at end of file diff --git a/tests/for of await double with break and two labels/case-outer.js b/tests/for of await double with break and two labels/case-outer.js index 580ac98..960d3c0 100644 --- a/tests/for of await double with break and two labels/case-outer.js +++ b/tests/for of await double with break and two labels/case-outer.js @@ -1 +1 @@ -async f => expect((await f([[1, 10, 4], [5, 4]]))).toBe(11) \ No newline at end of file +expect((await f([[1, 10, 4], [5, 4]]))).toBe(11) \ No newline at end of file diff --git a/tests/for of await double with break and two labels/case-single.js b/tests/for of await double with break and two labels/case-single.js index 7175538..fae7bf1 100644 --- a/tests/for of await double with break and two labels/case-single.js +++ b/tests/for of await double with break and two labels/case-single.js @@ -1 +1 @@ -async f => expect((await f([[1]]))).toBe(1) \ No newline at end of file +expect((await f([[1]]))).toBe(1) \ No newline at end of file diff --git a/tests/for of await double with break/case-break.js b/tests/for of await double with break/case-break.js index 580ac98..960d3c0 100644 --- a/tests/for of await double with break/case-break.js +++ b/tests/for of await double with break/case-break.js @@ -1 +1 @@ -async f => expect((await f([[1, 10, 4], [5, 4]]))).toBe(11) \ No newline at end of file +expect((await f([[1, 10, 4], [5, 4]]))).toBe(11) \ No newline at end of file diff --git a/tests/for of await double with break/case-empty.js b/tests/for of await double with break/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for of await double with break/case-empty.js +++ b/tests/for of await double with break/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for of await double with break/case-multiple.js b/tests/for of await double with break/case-multiple.js index 6c5976e..28fdb8f 100644 --- a/tests/for of await double with break/case-multiple.js +++ b/tests/for of await double with break/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([[1, 2], [3, 4]]))).toBe(10) \ No newline at end of file +expect((await f([[1, 2], [3, 4]]))).toBe(10) \ No newline at end of file diff --git a/tests/for of await double with break/case-single.js b/tests/for of await double with break/case-single.js index 7175538..fae7bf1 100644 --- a/tests/for of await double with break/case-single.js +++ b/tests/for of await double with break/case-single.js @@ -1 +1 @@ -async f => expect((await f([[1]]))).toBe(1) \ No newline at end of file +expect((await f([[1]]))).toBe(1) \ No newline at end of file diff --git a/tests/for of await double with continue/case-empty.js b/tests/for of await double with continue/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for of await double with continue/case-empty.js +++ b/tests/for of await double with continue/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for of await double with continue/case-inner.js b/tests/for of await double with continue/case-inner.js index e2aa728..43bcb5b 100644 --- a/tests/for of await double with continue/case-inner.js +++ b/tests/for of await double with continue/case-inner.js @@ -1 +1 @@ -async f => expect((await f([[11, 10], [5, 4]]))).toBe(19) \ No newline at end of file +expect((await f([[11, 10], [5, 4]]))).toBe(19) \ No newline at end of file diff --git a/tests/for of await double with continue/case-multiple.js b/tests/for of await double with continue/case-multiple.js index 6c5976e..28fdb8f 100644 --- a/tests/for of await double with continue/case-multiple.js +++ b/tests/for of await double with continue/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([[1, 2], [3, 4]]))).toBe(10) \ No newline at end of file +expect((await f([[1, 2], [3, 4]]))).toBe(10) \ No newline at end of file diff --git a/tests/for of await double with continue/case-outer.js b/tests/for of await double with continue/case-outer.js index df61753..e494686 100644 --- a/tests/for of await double with continue/case-outer.js +++ b/tests/for of await double with continue/case-outer.js @@ -1 +1 @@ -async f => expect((await f([[-1, 10], [5, 4]]))).toBe(8) \ No newline at end of file +expect((await f([[-1, 10], [5, 4]]))).toBe(8) \ No newline at end of file diff --git a/tests/for of await double with continue/case-single.js b/tests/for of await double with continue/case-single.js index 7175538..fae7bf1 100644 --- a/tests/for of await double with continue/case-single.js +++ b/tests/for of await double with continue/case-single.js @@ -1 +1 @@ -async f => expect((await f([[1]]))).toBe(1) \ No newline at end of file +expect((await f([[1]]))).toBe(1) \ No newline at end of file diff --git a/tests/for of await in body with break/case-break.js b/tests/for of await in body with break/case-break.js index 005dbf7..5bdfffd 100644 --- a/tests/for of await in body with break/case-break.js +++ b/tests/for of await in body with break/case-break.js @@ -1 +1 @@ -async f => expect((await f([1, 10, 4]))).toBe(11) \ No newline at end of file +expect((await f([1, 10, 4]))).toBe(11) \ No newline at end of file diff --git a/tests/for of await in body with break/case-empty.js b/tests/for of await in body with break/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for of await in body with break/case-empty.js +++ b/tests/for of await in body with break/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for of await in body with break/case-multiple.js b/tests/for of await in body with break/case-multiple.js index 6b8f101..e6b7631 100644 --- a/tests/for of await in body with break/case-multiple.js +++ b/tests/for of await in body with break/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([1, 2]))).toBe(3) \ No newline at end of file +expect((await f([1, 2]))).toBe(3) \ No newline at end of file diff --git a/tests/for of await in body with break/case-single.js b/tests/for of await in body with break/case-single.js index 4f50332..b121afc 100644 --- a/tests/for of await in body with break/case-single.js +++ b/tests/for of await in body with break/case-single.js @@ -1 +1 @@ -async f => expect((await f([1]))).toBe(1) \ No newline at end of file +expect((await f([1]))).toBe(1) \ No newline at end of file diff --git a/tests/for of await in body/case-empty.js b/tests/for of await in body/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for of await in body/case-empty.js +++ b/tests/for of await in body/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for of await in body/case-multiple.js b/tests/for of await in body/case-multiple.js index 6b8f101..e6b7631 100644 --- a/tests/for of await in body/case-multiple.js +++ b/tests/for of await in body/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([1, 2]))).toBe(3) \ No newline at end of file +expect((await f([1, 2]))).toBe(3) \ No newline at end of file diff --git a/tests/for of await in body/case-single.js b/tests/for of await in body/case-single.js index 4f50332..b121afc 100644 --- a/tests/for of await in body/case-single.js +++ b/tests/for of await in body/case-single.js @@ -1 +1 @@ -async f => expect((await f([1]))).toBe(1) \ No newline at end of file +expect((await f([1]))).toBe(1) \ No newline at end of file diff --git a/tests/for of await in value/case-empty.js b/tests/for of await in value/case-empty.js index 910d9e8..74ac5ed 100644 --- a/tests/for of await in value/case-empty.js +++ b/tests/for of await in value/case-empty.js @@ -1 +1 @@ -async f => expect((await f(async () => []))).toBe(0) \ No newline at end of file +expect((await f(async () => []))).toBe(0) \ No newline at end of file diff --git a/tests/for of await in value/case-multiple.js b/tests/for of await in value/case-multiple.js index 651c9f6..57c3a58 100644 --- a/tests/for of await in value/case-multiple.js +++ b/tests/for of await in value/case-multiple.js @@ -1 +1 @@ -async f => expect((await f(async () => [1, 2]))).toBe(3) \ No newline at end of file +expect((await f(async () => [1, 2]))).toBe(3) \ No newline at end of file diff --git a/tests/for of await in value/case-single.js b/tests/for of await in value/case-single.js index 95e2c85..4184a5e 100644 --- a/tests/for of await in value/case-single.js +++ b/tests/for of await in value/case-single.js @@ -1 +1 @@ -async f => expect((await f(async () => [1]))).toBe(1) \ No newline at end of file +expect((await f(async () => [1]))).toBe(1) \ No newline at end of file diff --git a/tests/for of in body/case-empty.js b/tests/for of in body/case-empty.js index ed0814b..8644a3b 100644 --- a/tests/for of in body/case-empty.js +++ b/tests/for of in body/case-empty.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for of in body/case-multiple.js b/tests/for of in body/case-multiple.js index 6b8f101..e6b7631 100644 --- a/tests/for of in body/case-multiple.js +++ b/tests/for of in body/case-multiple.js @@ -1 +1 @@ -async f => expect((await f([1, 2]))).toBe(3) \ No newline at end of file +expect((await f([1, 2]))).toBe(3) \ No newline at end of file diff --git a/tests/for of in body/case-single.js b/tests/for of in body/case-single.js index 4f50332..b121afc 100644 --- a/tests/for of in body/case-single.js +++ b/tests/for of in body/case-single.js @@ -1 +1 @@ -async f => expect((await f([1]))).toBe(1) \ No newline at end of file +expect((await f([1]))).toBe(1) \ No newline at end of file diff --git a/tests/for to length iteration with computed length/case-four.js b/tests/for to length iteration with computed length/case-four.js index 627b297..bb021a1 100644 --- a/tests/for to length iteration with computed length/case-four.js +++ b/tests/for to length iteration with computed length/case-four.js @@ -1 +1 @@ -async f => expect((await f([async _ => 1, async _ => 3]))).toBe(4) \ No newline at end of file +expect((await f([async _ => 1, async _ => 3]))).toBe(4) \ No newline at end of file diff --git a/tests/for to length iteration with computed length/case-nine.js b/tests/for to length iteration with computed length/case-nine.js index 80aed7d..66b9c32 100644 --- a/tests/for to length iteration with computed length/case-nine.js +++ b/tests/for to length iteration with computed length/case-nine.js @@ -1 +1 @@ -async f => expect((await f([async _ => 1, async _ => 3, async _ => 5]))).toBe(9) \ No newline at end of file +expect((await f([async _ => 1, async _ => 3, async _ => 5]))).toBe(9) \ No newline at end of file diff --git a/tests/for to length iteration with computed length/case-one.js b/tests/for to length iteration with computed length/case-one.js index b9d5932..b1b402a 100644 --- a/tests/for to length iteration with computed length/case-one.js +++ b/tests/for to length iteration with computed length/case-one.js @@ -1 +1 @@ -async f => expect((await f([async _ => 1]))).toBe(1) \ No newline at end of file +expect((await f([async _ => 1]))).toBe(1) \ No newline at end of file diff --git a/tests/for to length iteration with computed length/case-zero.js b/tests/for to length iteration with computed length/case-zero.js index ed0814b..8644a3b 100644 --- a/tests/for to length iteration with computed length/case-zero.js +++ b/tests/for to length iteration with computed length/case-zero.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for to length iteration/case-four.js b/tests/for to length iteration/case-four.js index 627b297..bb021a1 100644 --- a/tests/for to length iteration/case-four.js +++ b/tests/for to length iteration/case-four.js @@ -1 +1 @@ -async f => expect((await f([async _ => 1, async _ => 3]))).toBe(4) \ No newline at end of file +expect((await f([async _ => 1, async _ => 3]))).toBe(4) \ No newline at end of file diff --git a/tests/for to length iteration/case-nine.js b/tests/for to length iteration/case-nine.js index 80aed7d..66b9c32 100644 --- a/tests/for to length iteration/case-nine.js +++ b/tests/for to length iteration/case-nine.js @@ -1 +1 @@ -async f => expect((await f([async _ => 1, async _ => 3, async _ => 5]))).toBe(9) \ No newline at end of file +expect((await f([async _ => 1, async _ => 3, async _ => 5]))).toBe(9) \ No newline at end of file diff --git a/tests/for to length iteration/case-one.js b/tests/for to length iteration/case-one.js index b9d5932..b1b402a 100644 --- a/tests/for to length iteration/case-one.js +++ b/tests/for to length iteration/case-one.js @@ -1 +1 @@ -async f => expect((await f([async _ => 1]))).toBe(1) \ No newline at end of file +expect((await f([async _ => 1]))).toBe(1) \ No newline at end of file diff --git a/tests/for to length iteration/case-zero.js b/tests/for to length iteration/case-zero.js index ed0814b..8644a3b 100644 --- a/tests/for to length iteration/case-zero.js +++ b/tests/for to length iteration/case-zero.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(0) \ No newline at end of file +expect((await f([]))).toBe(0) \ No newline at end of file diff --git a/tests/for to length with break/case-none.js b/tests/for to length with break/case-none.js index f4e4d18..2d8c3df 100644 --- a/tests/for to length with break/case-none.js +++ b/tests/for to length with break/case-none.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(undefined) \ No newline at end of file +expect((await f([]))).toBe(undefined) \ No newline at end of file diff --git a/tests/for to length with continue/case-none.js b/tests/for to length with continue/case-none.js index edf9a90..5a15bbc 100644 --- a/tests/for to length with continue/case-none.js +++ b/tests/for to length with continue/case-none.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(true) \ No newline at end of file +expect((await f([]))).toBe(true) \ No newline at end of file diff --git a/tests/for to length with continue/case-single false.js b/tests/for to length with continue/case-single false.js index b25601f..601441e 100644 --- a/tests/for to length with continue/case-single false.js +++ b/tests/for to length with continue/case-single false.js @@ -1 +1 @@ -async f => expect((await f([async _ => true]))).toBe(true) \ No newline at end of file +expect((await f([async _ => true]))).toBe(true) \ No newline at end of file diff --git a/tests/for to length with continue/case-single true.js b/tests/for to length with continue/case-single true.js index f64d08b..888ff95 100644 --- a/tests/for to length with continue/case-single true.js +++ b/tests/for to length with continue/case-single true.js @@ -1 +1 @@ -async f => expect((await f([async _ => false]))).toBe(false) \ No newline at end of file +expect((await f([async _ => false]))).toBe(false) \ No newline at end of file diff --git a/tests/for to length with continue/case-true and false.js b/tests/for to length with continue/case-true and false.js index 75b2fbc..c8d8371 100644 --- a/tests/for to length with continue/case-true and false.js +++ b/tests/for to length with continue/case-true and false.js @@ -1 +1 @@ -async f => expect((await f([async _ => true, async _ => false]))).toBe(false) \ No newline at end of file +expect((await f([async _ => true, async _ => false]))).toBe(false) \ No newline at end of file diff --git a/tests/for to length with mutation/case-none.js b/tests/for to length with mutation/case-none.js index f4e4d18..2d8c3df 100644 --- a/tests/for to length with mutation/case-none.js +++ b/tests/for to length with mutation/case-none.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(undefined) \ No newline at end of file +expect((await f([]))).toBe(undefined) \ No newline at end of file diff --git a/tests/for to length with return/case-none.js b/tests/for to length with return/case-none.js index f4e4d18..2d8c3df 100644 --- a/tests/for to length with return/case-none.js +++ b/tests/for to length with return/case-none.js @@ -1 +1 @@ -async f => expect((await f([]))).toBe(undefined) \ No newline at end of file +expect((await f([]))).toBe(undefined) \ No newline at end of file diff --git a/tests/forwarding to async function optimization hoisted/case-result.js b/tests/forwarding to async function optimization hoisted/case-result.js index 8036421..8999be2 100644 --- a/tests/forwarding to async function optimization hoisted/case-result.js +++ b/tests/forwarding to async function optimization hoisted/case-result.js @@ -1 +1 @@ -async f => expect((await f(1)(2))).toBe(3) \ No newline at end of file +expect((await f(1)(2))).toBe(3) \ No newline at end of file diff --git a/tests/forwarding to async function optimization/case-result.js b/tests/forwarding to async function optimization/case-result.js index 8036421..8999be2 100644 --- a/tests/forwarding to async function optimization/case-result.js +++ b/tests/forwarding to async function optimization/case-result.js @@ -1 +1 @@ -async f => expect((await f(1)(2))).toBe(3) \ No newline at end of file +expect((await f(1)(2))).toBe(3) \ No newline at end of file diff --git a/tests/forwarding to const async optimization bail out/case-result.js b/tests/forwarding to const async optimization bail out/case-result.js index 8036421..8999be2 100644 --- a/tests/forwarding to const async optimization bail out/case-result.js +++ b/tests/forwarding to const async optimization bail out/case-result.js @@ -1 +1 @@ -async f => expect((await f(1)(2))).toBe(3) \ No newline at end of file +expect((await f(1)(2))).toBe(3) \ No newline at end of file diff --git a/tests/forwarding to const async optimization/case-result.js b/tests/forwarding to const async optimization/case-result.js index 8036421..8999be2 100644 --- a/tests/forwarding to const async optimization/case-result.js +++ b/tests/forwarding to const async optimization/case-result.js @@ -1 +1 @@ -async f => expect((await f(1)(2))).toBe(3) \ No newline at end of file +expect((await f(1)(2))).toBe(3) \ No newline at end of file diff --git a/tests/function hoisting/case-run.js b/tests/function hoisting/case-run.js index 3915c38..ec34df8 100644 --- a/tests/function hoisting/case-run.js +++ b/tests/function hoisting/case-run.js @@ -1 +1 @@ -async f => expect((await f)).toEqual(true) \ No newline at end of file +expect((await f)).toEqual(true) \ No newline at end of file diff --git a/tests/helper names/case-value.js b/tests/helper names/case-value.js index 9df1eca..b8562c8 100644 --- a/tests/helper names/case-value.js +++ b/tests/helper names/case-value.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => true))).toBe(true) \ No newline at end of file +expect((await f(_ => true, _ => true))).toBe(true) \ No newline at end of file diff --git a/tests/hoist deduping/case-one.js b/tests/hoist deduping/case-one.js index c38be18..6754a7c 100644 --- a/tests/hoist deduping/case-one.js +++ b/tests/hoist deduping/case-one.js @@ -1 +1 @@ -async f => expect((await f(() => true, () => true, () => true))).toBe(true) \ No newline at end of file +expect((await f(() => true, () => true, () => true))).toBe(true) \ No newline at end of file diff --git a/tests/hoist deduping/case-three.js b/tests/hoist deduping/case-three.js index 8ec6a58..06b643a 100644 --- a/tests/hoist deduping/case-three.js +++ b/tests/hoist deduping/case-three.js @@ -1 +1 @@ -async f => expect((await f(() => false, () => false, () => true))).toBe(true) \ No newline at end of file +expect((await f(() => false, () => false, () => true))).toBe(true) \ No newline at end of file diff --git a/tests/hoist deduping/case-two.js b/tests/hoist deduping/case-two.js index 2626877..3350949 100644 --- a/tests/hoist deduping/case-two.js +++ b/tests/hoist deduping/case-two.js @@ -1 +1 @@ -async f => expect((await f(() => true, () => false, () => true))).toBe(undefined) \ No newline at end of file +expect((await f(() => true, () => false, () => true))).toBe(undefined) \ No newline at end of file diff --git a/tests/if body assignments/case-alternate.js b/tests/if body assignments/case-alternate.js index cd9c32d..94d4fcd 100644 --- a/tests/if body assignments/case-alternate.js +++ b/tests/if body assignments/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/if body assignments/case-consequent.js b/tests/if body assignments/case-consequent.js index 3ec557b..d69d05d 100644 --- a/tests/if body assignments/case-consequent.js +++ b/tests/if body assignments/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/if body returns/case-alternate.js b/tests/if body returns/case-alternate.js index cd9c32d..94d4fcd 100644 --- a/tests/if body returns/case-alternate.js +++ b/tests/if body returns/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/if body returns/case-consequent.js b/tests/if body returns/case-consequent.js index 3ec557b..d69d05d 100644 --- a/tests/if body returns/case-consequent.js +++ b/tests/if body returns/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/if predicate/case-alternate.js b/tests/if predicate/case-alternate.js index 519afba..02c5ac1 100644 --- a/tests/if predicate/case-alternate.js +++ b/tests/if predicate/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/if predicate/case-consequent.js b/tests/if predicate/case-consequent.js index 3d03713..91cd8fa 100644 --- a/tests/if predicate/case-consequent.js +++ b/tests/if predicate/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(async _ => true))).toBe(1) \ No newline at end of file +expect((await f(async _ => true))).toBe(1) \ No newline at end of file diff --git a/tests/if prefix/case-alternate.js b/tests/if prefix/case-alternate.js index 519afba..02c5ac1 100644 --- a/tests/if prefix/case-alternate.js +++ b/tests/if prefix/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/if prefix/case-consequent.js b/tests/if prefix/case-consequent.js index 3d03713..91cd8fa 100644 --- a/tests/if prefix/case-consequent.js +++ b/tests/if prefix/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(async _ => true))).toBe(1) \ No newline at end of file +expect((await f(async _ => true))).toBe(1) \ No newline at end of file diff --git a/tests/inner functions/case-result.js b/tests/inner functions/case-result.js index 8036421..8999be2 100644 --- a/tests/inner functions/case-result.js +++ b/tests/inner functions/case-result.js @@ -1 +1 @@ -async f => expect((await f(1)(2))).toBe(3) \ No newline at end of file +expect((await f(1)(2))).toBe(3) \ No newline at end of file diff --git a/tests/invoke rewrite with empty continuation/case-result.js b/tests/invoke rewrite with empty continuation/case-result.js index e8b643e..1a2ab4b 100644 --- a/tests/invoke rewrite with empty continuation/case-result.js +++ b/tests/invoke rewrite with empty continuation/case-result.js @@ -1 +1 @@ -async f => expect((await f(false, false, () => true))).toBe(true) \ No newline at end of file +expect((await f(false, false, () => true))).toBe(true) \ No newline at end of file diff --git a/tests/object method syntax/case-method.js b/tests/object method syntax/case-method.js index e07359f..a7e1acc 100644 --- a/tests/object method syntax/case-method.js +++ b/tests/object method syntax/case-method.js @@ -1 +1 @@ -async f => expect((await f().foo(async () => true))).toBe(true) \ No newline at end of file +expect((await f().foo(async () => true))).toBe(true) \ No newline at end of file diff --git a/tests/passthrough/case-result.js b/tests/passthrough/case-result.js index 11bb431..eb60fca 100644 --- a/tests/passthrough/case-result.js +++ b/tests/passthrough/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toBe(1) \ No newline at end of file +expect((await f())).toBe(1) \ No newline at end of file diff --git a/tests/return in consequent/case-inner if.js b/tests/return in consequent/case-inner if.js index 34ed6ac..6cb6f3d 100644 --- a/tests/return in consequent/case-inner if.js +++ b/tests/return in consequent/case-inner if.js @@ -1 +1 @@ -async f => expect((await f(true, async _ => 1))).toBe(1) \ No newline at end of file +expect((await f(true, async _ => 1))).toBe(1) \ No newline at end of file diff --git a/tests/return in consequent/case-no entry.js b/tests/return in consequent/case-no entry.js index c92e8c0..d325da5 100644 --- a/tests/return in consequent/case-no entry.js +++ b/tests/return in consequent/case-no entry.js @@ -1 +1 @@ -async f => expect((await f(false, async _ => 1))).toBe(0) \ No newline at end of file +expect((await f(false, async _ => 1))).toBe(0) \ No newline at end of file diff --git a/tests/return in consequent/case-outer if.js b/tests/return in consequent/case-outer if.js index 9dd7193..3c65b9b 100644 --- a/tests/return in consequent/case-outer if.js +++ b/tests/return in consequent/case-outer if.js @@ -1 +1 @@ -async f => expect((await f(true, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(true, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/return inside try/case-value.js b/tests/return inside try/case-value.js index 943768d..3df997a 100644 --- a/tests/return inside try/case-value.js +++ b/tests/return inside try/case-value.js @@ -1 +1 @@ -async f => expect((await f(() => 0, []))).toBe('result-try') \ No newline at end of file +expect((await f(() => 0, []))).toBe('result-try') \ No newline at end of file diff --git a/tests/ternary alternate optimized/case-alternate.js b/tests/ternary alternate optimized/case-alternate.js index b753359..be17384 100644 --- a/tests/ternary alternate optimized/case-alternate.js +++ b/tests/ternary alternate optimized/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary alternate optimized/case-consequent.js b/tests/ternary alternate optimized/case-consequent.js index 3d3ce1e..41c3e8b 100644 --- a/tests/ternary alternate optimized/case-consequent.js +++ b/tests/ternary alternate optimized/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary alternate/case-alternate.js b/tests/ternary alternate/case-alternate.js index b753359..be17384 100644 --- a/tests/ternary alternate/case-alternate.js +++ b/tests/ternary alternate/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary alternate/case-consequent.js b/tests/ternary alternate/case-consequent.js index 3d3ce1e..41c3e8b 100644 --- a/tests/ternary alternate/case-consequent.js +++ b/tests/ternary alternate/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary body complex left optimized/case-alternate.js b/tests/ternary body complex left optimized/case-alternate.js index 8c17927..ceec9dd 100644 --- a/tests/ternary body complex left optimized/case-alternate.js +++ b/tests/ternary body complex left optimized/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary body complex left optimized/case-consequent.js b/tests/ternary body complex left optimized/case-consequent.js index ac56e56..7c053f5 100644 --- a/tests/ternary body complex left optimized/case-consequent.js +++ b/tests/ternary body complex left optimized/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary body complex left/case-alternate.js b/tests/ternary body complex left/case-alternate.js index 8c17927..ceec9dd 100644 --- a/tests/ternary body complex left/case-alternate.js +++ b/tests/ternary body complex left/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary body complex left/case-consequent.js b/tests/ternary body complex left/case-consequent.js index ac56e56..7c053f5 100644 --- a/tests/ternary body complex left/case-consequent.js +++ b/tests/ternary body complex left/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary body complex right optimized/case-alternate.js b/tests/ternary body complex right optimized/case-alternate.js index 8c17927..ceec9dd 100644 --- a/tests/ternary body complex right optimized/case-alternate.js +++ b/tests/ternary body complex right optimized/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary body complex right optimized/case-consequent.js b/tests/ternary body complex right optimized/case-consequent.js index ac56e56..7c053f5 100644 --- a/tests/ternary body complex right optimized/case-consequent.js +++ b/tests/ternary body complex right optimized/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary body complex right/case-alternate.js b/tests/ternary body complex right/case-alternate.js index 8c17927..ceec9dd 100644 --- a/tests/ternary body complex right/case-alternate.js +++ b/tests/ternary body complex right/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, _ => 1, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary body complex right/case-consequent.js b/tests/ternary body complex right/case-consequent.js index ac56e56..7c053f5 100644 --- a/tests/ternary body complex right/case-consequent.js +++ b/tests/ternary body complex right/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, _ => 1, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary body optimized/case-alternate.js b/tests/ternary body optimized/case-alternate.js index cd9c32d..94d4fcd 100644 --- a/tests/ternary body optimized/case-alternate.js +++ b/tests/ternary body optimized/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary body optimized/case-consequent.js b/tests/ternary body optimized/case-consequent.js index 3ec557b..d69d05d 100644 --- a/tests/ternary body optimized/case-consequent.js +++ b/tests/ternary body optimized/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary body/case-alternate.js b/tests/ternary body/case-alternate.js index cd9c32d..94d4fcd 100644 --- a/tests/ternary body/case-alternate.js +++ b/tests/ternary body/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 1, async _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary body/case-consequent.js b/tests/ternary body/case-consequent.js index 3ec557b..d69d05d 100644 --- a/tests/ternary body/case-consequent.js +++ b/tests/ternary body/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 1, async _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary consequent optimized/case-alternate.js b/tests/ternary consequent optimized/case-alternate.js index 2ebe37a..c962daf 100644 --- a/tests/ternary consequent optimized/case-alternate.js +++ b/tests/ternary consequent optimized/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 1, _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 1, _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary consequent optimized/case-consequent.js b/tests/ternary consequent optimized/case-consequent.js index f29ddad..6e8c981 100644 --- a/tests/ternary consequent optimized/case-consequent.js +++ b/tests/ternary consequent optimized/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 1, _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 1, _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary consequent/case-alternate.js b/tests/ternary consequent/case-alternate.js index 2ebe37a..c962daf 100644 --- a/tests/ternary consequent/case-alternate.js +++ b/tests/ternary consequent/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(_ => false, async _ => 1, _ => 0))).toBe(0) \ No newline at end of file +expect((await f(_ => false, async _ => 1, _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary consequent/case-consequent.js b/tests/ternary consequent/case-consequent.js index f29ddad..6e8c981 100644 --- a/tests/ternary consequent/case-consequent.js +++ b/tests/ternary consequent/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(_ => true, async _ => 1, _ => 0))).toBe(1) \ No newline at end of file +expect((await f(_ => true, async _ => 1, _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/ternary predicate/case-alternate.js b/tests/ternary predicate/case-alternate.js index 46e7478..ea5d7d6 100644 --- a/tests/ternary predicate/case-alternate.js +++ b/tests/ternary predicate/case-alternate.js @@ -1 +1 @@ -async f => expect((await f(async _ => false, _ => 1, _ => 0))).toBe(0) \ No newline at end of file +expect((await f(async _ => false, _ => 1, _ => 0))).toBe(0) \ No newline at end of file diff --git a/tests/ternary predicate/case-consequent.js b/tests/ternary predicate/case-consequent.js index 586c5cd..8abc4b7 100644 --- a/tests/ternary predicate/case-consequent.js +++ b/tests/ternary predicate/case-consequent.js @@ -1 +1 @@ -async f => expect((await f(async _ => true, _ => 1, _ => 0))).toBe(1) \ No newline at end of file +expect((await f(async _ => true, _ => 1, _ => 0))).toBe(1) \ No newline at end of file diff --git a/tests/this call property/case-missing.js b/tests/this call property/case-missing.js index 80eea23..3683d08 100644 --- a/tests/this call property/case-missing.js +++ b/tests/this call property/case-missing.js @@ -1,3 +1,3 @@ -async f => expect((await f({ bar: function () { +expect((await f({ bar: function () { return this.baz; } }))).toBe(undefined) \ No newline at end of file diff --git a/tests/this call property/case-present.js b/tests/this call property/case-present.js index e3f34a9..6d89d9b 100644 --- a/tests/this call property/case-present.js +++ b/tests/this call property/case-present.js @@ -1,3 +1,3 @@ -async f => expect((await f({ bar: function () { +expect((await f({ bar: function () { return this.baz; }, baz: 1 }))).toBe(1) \ No newline at end of file diff --git a/tests/this call subscript/case-missing.js b/tests/this call subscript/case-missing.js index 80eea23..3683d08 100644 --- a/tests/this call subscript/case-missing.js +++ b/tests/this call subscript/case-missing.js @@ -1,3 +1,3 @@ -async f => expect((await f({ bar: function () { +expect((await f({ bar: function () { return this.baz; } }))).toBe(undefined) \ No newline at end of file diff --git a/tests/this call subscript/case-present.js b/tests/this call subscript/case-present.js index e3f34a9..6d89d9b 100644 --- a/tests/this call subscript/case-present.js +++ b/tests/this call subscript/case-present.js @@ -1,3 +1,3 @@ -async f => expect((await f({ bar: function () { +expect((await f({ bar: function () { return this.baz; }, baz: 1 }))).toBe(1) \ No newline at end of file diff --git a/tests/this expressions/case-async.js b/tests/this expressions/case-async.js index e7ed31c..cb40edb 100644 --- a/tests/this expressions/case-async.js +++ b/tests/this expressions/case-async.js @@ -1 +1 @@ -async f => expect((await f.call({ foo: async _ => 2, bar: async _ => 4 }))).toBe(6) \ No newline at end of file +expect((await f.call({ foo: async _ => 2, bar: async _ => 4 }))).toBe(6) \ No newline at end of file diff --git a/tests/this expressions/case-direct.js b/tests/this expressions/case-direct.js index 2b6932e..268b844 100644 --- a/tests/this expressions/case-direct.js +++ b/tests/this expressions/case-direct.js @@ -1 +1 @@ -async f => expect((await f.call({ foo: _ => 1, bar: _ => 2 }))).toBe(3) \ No newline at end of file +expect((await f.call({ foo: _ => 1, bar: _ => 2 }))).toBe(3) \ No newline at end of file diff --git a/tests/try...catch...finally event loop ordering/case-result.js b/tests/try...catch...finally event loop ordering/case-result.js index 7ef8387..dc131a6 100644 --- a/tests/try...catch...finally event loop ordering/case-result.js +++ b/tests/try...catch...finally event loop ordering/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toEqual(['start', 'tryStart', 'waitStart1', 'waitStop1', 'tryStop', 'finallyStart', 'waitStart2', 'waitStop2', 'finallyStop', 'stop']) \ No newline at end of file +expect((await f())).toEqual(['start', 'tryStart', 'waitStart1', 'waitStop1', 'tryStop', 'finallyStart', 'waitStart2', 'waitStop2', 'finallyStop', 'stop']) \ No newline at end of file diff --git a/tests/two variables/case-result.js b/tests/two variables/case-result.js index a1e6ee9..1060dbd 100644 --- a/tests/two variables/case-result.js +++ b/tests/two variables/case-result.js @@ -1 +1 @@ -async f => expect((await f(async _ => 3, async _ => 2))).toBe(5) \ No newline at end of file +expect((await f(async _ => 3, async _ => 2))).toBe(5) \ No newline at end of file diff --git a/tests/variable hoisting/case-value.js b/tests/variable hoisting/case-value.js index 0e8c75c..1ea4954 100644 --- a/tests/variable hoisting/case-value.js +++ b/tests/variable hoisting/case-value.js @@ -1 +1 @@ -async f => expect((await f(() => true))).toBe(true) \ No newline at end of file +expect((await f(() => true))).toBe(true) \ No newline at end of file diff --git a/tests/while promise direct/case-result.js b/tests/while promise direct/case-result.js index 8544d12..961db5d 100644 --- a/tests/while promise direct/case-result.js +++ b/tests/while promise direct/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toBe(true) \ No newline at end of file +expect((await f())).toBe(true) \ No newline at end of file diff --git a/tests/while promise indirect/case-result.js b/tests/while promise indirect/case-result.js index 8544d12..961db5d 100644 --- a/tests/while promise indirect/case-result.js +++ b/tests/while promise indirect/case-result.js @@ -1 +1 @@ -async f => expect((await f())).toBe(true) \ No newline at end of file +expect((await f())).toBe(true) \ No newline at end of file