From d4c3fddd3de605983398756d3b46e2f14e55aba2 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 7 Feb 2024 15:04:51 -0800 Subject: Get more tests working with the new text parser (#6284) The new parser enforces the rule that imports must come before declarations (except for type declarations). The old parser does not enforce this rule, so many of our tests did not follow it. Fix them to follow that rule and fix other invalid syntax. Also add missing finalization of Load expressions in wasm-builder.h that was causing a test to fail under the new parser and guard against an error case in wasm-ir-builder.cpp that used to cause a segfault. --- test/unit/input/asyncify-stackOverflow.wat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/input/asyncify-stackOverflow.wat') diff --git a/test/unit/input/asyncify-stackOverflow.wat b/test/unit/input/asyncify-stackOverflow.wat index b838f2360..8be4c59f1 100644 --- a/test/unit/input/asyncify-stackOverflow.wat +++ b/test/unit/input/asyncify-stackOverflow.wat @@ -1,6 +1,6 @@ (module - (memory 1 2) (import "env" "sleep" (func $sleep)) + (memory 1 2) (export "memory" (memory 0)) (func $many_locals (export "many_locals") (param $x i32) (result i32) (local $y i32) -- cgit v1.2.3