From d3414c3deaebe7ba35731a8c20d7fa5f5a833ca3 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Fri, 22 Mar 2024 15:44:05 -0700 Subject: 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. --- test/lit/passes/precompute-strings.wast | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/lit/passes/precompute-strings.wast b/test/lit/passes/precompute-strings.wast index 74ca4d145..58c7e52d0 100644 --- a/test/lit/passes/precompute-strings.wast +++ b/test/lit/passes/precompute-strings.wast @@ -177,9 +177,7 @@ ;; CHECK-NEXT: ) ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (string.encode_wtf16_array - ;; CHECK-NEXT: (string.as_wtf16 - ;; CHECK-NEXT: (string.const "0123456789") - ;; CHECK-NEXT: ) + ;; CHECK-NEXT: (string.const "0123456789") ;; CHECK-NEXT: (local.get $1) ;; CHECK-NEXT: (i32.const 0) ;; CHECK-NEXT: ) @@ -197,9 +195,7 @@ ;; Fill it with some string data. (drop (string.encode_wtf16_array - (string.as_wtf16 - (string.const "0123456789") - ) + (string.const "0123456789") (local.get $1) (i32.const 0) ) -- cgit v1.2.3