Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 0f7f930

Browse files
gahaasrossberg
authored andcommitted
[test] JS-compatible module name (#45)
1 parent 822039b commit 0f7f930

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/core/linking.wast

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,18 @@
9393
)
9494

9595

96-
(module $Mref-ex
96+
(module $Mref_ex
9797
(global (export "g-const") funcref (ref.null))
9898
(global (export "g-var") (mut funcref) (ref.null))
9999
)
100-
(register "Mref-ex" $Mref-ex)
100+
(register "Mref_ex" $Mref_ex)
101101

102-
(module $Mref-im
103-
(global (import "Mref-ex" "g-const") anyref)
102+
(module $Mref_im
103+
(global (import "Mref_ex" "g-const") anyref)
104104
)
105105

106106
(assert_unlinkable
107-
(module (global (import "Mref-ex" "g-var") (mut anyref)))
107+
(module (global (import "Mref_ex" "g-var") (mut anyref)))
108108
"incompatible import type"
109109
)
110110

0 commit comments

Comments
 (0)