diff --git a/test/parallel/test-vm-module-dynamic-import.js b/test/parallel/test-vm-module-dynamic-import.js index b74d3b28d7a547..bd542ca9202513 100644 --- a/test/parallel/test-vm-module-dynamic-import.js +++ b/test/parallel/test-vm-module-dynamic-import.js @@ -40,7 +40,7 @@ async function test() { }); const result = s.runInThisContext(); - assert.strictEqual(foo.namespace, await result); + assert.strictEqual(await result, foo.namespace); } { @@ -53,7 +53,7 @@ async function test() { }); await m.link(common.mustNotCall()); await m.evaluate(); - assert.strictEqual(foo.namespace, await globalThis.fooResult); + assert.strictEqual(await globalThis.fooResult, foo.namespace); delete globalThis.fooResult; } @@ -68,7 +68,7 @@ async function test() { }); const result = s.runInThisContext(); - assert.strictEqual(foo.namespace, await result); + assert.strictEqual(await result, foo.namespace); } }