From 6b10ea50184bce445d7a1d16ab066f46d8068646 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Sun, 15 Jan 2023 13:36:25 +0800 Subject: [PATCH] fix self-hosted test --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index a96caf4..ddb3f1f 100644 --- a/test/test.js +++ b/test/test.js @@ -2944,8 +2944,8 @@ const y = x()` }), test('async/await move_cursor before code evaluated', async () => { - const i = test_initial_state(` - await new Promise(resolve => globalThis.setTimeout(resolve, 1)) + const i = test_initial_state(` + await new Promise(resolve => null) `) const moved = COMMANDS.move_cursor(i, 0) // No assertion, must not throw