Skip to content

Commit f369a8c

Browse files
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.
1 parent 026f723 commit f369a8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/core/stack-switching/cont.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@
574574

575575
;; Nested example: generator in a thread
576576

577-
(module $concurrent-generator
577+
(module $concurrent_generator
578578
(func $log (import "spectest" "print_i64") (param i64))
579579

580580
(tag $syield (import "scheduler" "yield"))

test/core/stack-switching/validation_gc.wast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
;;;;
229229

230230

231-
(module $subtyping-resume0
231+
(module $subtyping_resume0
232232

233233
(type $ft0 (func))
234234
(type $ct0 (cont $ft0))
@@ -260,7 +260,7 @@
260260
)
261261
)
262262

263-
(module $subtyping-resume1
263+
(module $subtyping_resume1
264264

265265
(type $ft0 (func))
266266
(type $ct0 (cont $ft0))

0 commit comments

Comments
 (0)