Skip to content

Commit d3414c3

Browse files
authored
Remove extra conversion in string test (#6426)
`string.encode_wtf16_array` operates on stringref, not on wtf16 string views, so this conversion was causing validation errors when passed to V8 by the fuzzer.
1 parent 509eaa2 commit d3414c3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/lit/passes/precompute-strings.wast

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@
177177
;; CHECK-NEXT: )
178178
;; CHECK-NEXT: (drop
179179
;; CHECK-NEXT: (string.encode_wtf16_array
180-
;; CHECK-NEXT: (string.as_wtf16
181-
;; CHECK-NEXT: (string.const "0123456789")
182-
;; CHECK-NEXT: )
180+
;; CHECK-NEXT: (string.const "0123456789")
183181
;; CHECK-NEXT: (local.get $1)
184182
;; CHECK-NEXT: (i32.const 0)
185183
;; CHECK-NEXT: )
@@ -197,9 +195,7 @@
197195
;; Fill it with some string data.
198196
(drop
199197
(string.encode_wtf16_array
200-
(string.as_wtf16
201-
(string.const "0123456789")
202-
)
198+
(string.const "0123456789")
203199
(local.get $1)
204200
(i32.const 0)
205201
)

0 commit comments

Comments
 (0)