From 2cbe448eb4df17010f0e5f360a8e705da710f3e0 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 13 Sep 2023 20:02:26 -0700 Subject: Replace i31.new with ref.i31 everywhere (#5931) Replace i31.new with ref.i31 in the printer, tests, and source code. Continue parsing i31.new for the time being to allow a graceful transition. Also update the JS API to reflect the new instruction name. --- src/tools/fuzzing/fuzzing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/fuzzing/fuzzing.cpp') diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp index 1aa52e70d..f776c1c9d 100644 --- a/src/tools/fuzzing/fuzzing.cpp +++ b/src/tools/fuzzing/fuzzing.cpp @@ -2321,7 +2321,7 @@ Expression* TranslateToFuzzReader::makeBasicRef(Type type) { return builder.makeRefNull(HeapType::none); } auto nullability = getSubType(type.getNullability()); - // i31.new is not allowed in initializer expressions. + // ref.i31 is not allowed in initializer expressions. HeapType subtype; switch (upTo(3)) { case 0: -- cgit v1.2.3