Skip to content

Commit 74a4c54

Browse files
committed
Add missing conversions in string slice tests
Our validator apparently does not catch this type issue yet. For now just fix the tests.
1 parent ccfd01e commit 74a4c54

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/lit/passes/precompute-strings.wast

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@
162162
(func $slice (export "slice") (result (ref string))
163163
;; Slicing [3:6] here should definitely output "def".
164164
(stringview_wtf16.slice
165-
(string.const "abcdefgh")
165+
(string.as_wtf16
166+
(string.const "abcdefgh")
167+
)
166168
(i32.const 3)
167169
(i32.const 6)
168170
)
@@ -179,7 +181,9 @@
179181
;; This slice contains non-ascii, so we do not optimize.
180182
(stringview_wtf16.slice
181183
;; abcd£fgh
182-
(string.const "abcd\C2\A3fgh")
184+
(string.as_wtf16
185+
(string.const "abcd\C2\A3fgh")
186+
)
183187
(i32.const 3)
184188
(i32.const 6)
185189
)

0 commit comments

Comments
 (0)