From 01547ad0bb029e2b26db719ee9e9d8b45f0fbbfb Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sun, 17 Dec 2023 12:21:09 +0000 Subject: [PATCH] Tests WIP 4 --- test/with.test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/with.test.js b/test/with.test.js index fce1d5b2..b646a69c 100644 --- a/test/with.test.js +++ b/test/with.test.js @@ -253,11 +253,9 @@ describe('with statements', () => { in() { const obj = {x: 123}, x = 456; - let fn; with (obj) { - fn = (0, () => x); + return [() => x, obj]; } - return [fn, obj]; }, out: `(()=>{ const a={x:123}; @@ -278,11 +276,9 @@ describe('with statements', () => { in() { const obj = {x: 123}, x = 456; - let fn; with (obj) { - fn = (0, () => x); + return [() => x, obj]; } - return [fn, obj]; }, out: `(()=>{ const a={x:123};