From f369a8c37642fc1d85f285ebd103e9638a63f9c2 Mon Sep 17 00:00:00 2001 From: Thibaud Michaud Date: Mon, 13 Oct 2025 17:42:46 +0200 Subject: [PATCH] Tests: use JS-compatible module names When the core tests are converted to JS, module names are used as JS identifiers, so "-" is not a valid symbol in that context. Use "_" instead. --- test/core/stack-switching/cont.wast | 2 +- test/core/stack-switching/validation_gc.wast | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/core/stack-switching/cont.wast b/test/core/stack-switching/cont.wast index 3695edf3..0faa245e 100644 --- a/test/core/stack-switching/cont.wast +++ b/test/core/stack-switching/cont.wast @@ -574,7 +574,7 @@ ;; Nested example: generator in a thread -(module $concurrent-generator +(module $concurrent_generator (func $log (import "spectest" "print_i64") (param i64)) (tag $syield (import "scheduler" "yield")) diff --git a/test/core/stack-switching/validation_gc.wast b/test/core/stack-switching/validation_gc.wast index f6691e0c..f9c098d0 100644 --- a/test/core/stack-switching/validation_gc.wast +++ b/test/core/stack-switching/validation_gc.wast @@ -228,7 +228,7 @@ ;;;; -(module $subtyping-resume0 +(module $subtyping_resume0 (type $ft0 (func)) (type $ct0 (cont $ft0)) @@ -260,7 +260,7 @@ ) ) -(module $subtyping-resume1 +(module $subtyping_resume1 (type $ft0 (func)) (type $ct0 (cont $ft0))