summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/node_compat/test.ts7
-rw-r--r--cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out2
2 files changed, 8 insertions, 1 deletions
diff --git a/cli/tests/node_compat/test.ts b/cli/tests/node_compat/test.ts
index 17c5bd029..52bb6810c 100644
--- a/cli/tests/node_compat/test.ts
+++ b/cli/tests/node_compat/test.ts
@@ -66,9 +66,15 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
const v8Flags = ["--stack-size=4000"];
const testSource = await Deno.readTextFile(testCase);
+ const envVars: Record<string, string> = {};
// TODO(kt3k): Parse `Flags` directive correctly
if (testSource.includes("Flags: --expose_externalize_string")) {
v8Flags.push("--expose-externalize-string");
+ // TODO(bartlomieju): disable verifying globals if that V8 flag is
+ // present. Even though we should be able to pass a list of globals
+ // that are allowed, it doesn't work, because the list is expected to
+ // contain actual JS objects, not strings :)).
+ envVars["NODE_TEST_KNOWN_GLOBALS"] = "0";
}
const args = [
@@ -88,6 +94,7 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
args,
env: {
TEST_SERIAL_ID: String(testSerialId++),
+ ...envVars,
},
cwd,
});
diff --git a/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out b/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
index 66eb8201c..325180de4 100644
--- a/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
+++ b/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
@@ -1,2 +1,2 @@
-Error: CompileError: WebAssembly.compile(): expected length: @+10
+Error: CompileError: WebAssembly.compile(): reached end while decoding length: @+10
at file:///[WILDCARD]/close_in_wasm_reactions.js:18:13