From 570007dbecf86db5ddba8d303896d841fc2b2d27 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 16 Nov 2022 13:44:33 -0800 Subject: Revert "Make `call_ref` type annotations mandatory (#5246)" (#5265) This reverts commit b2054b72b7daa89b7ad161c0693befad06a20c90. It looks like the necessary V8 change has not rolled out everywhere yet. --- src/wasm-binary.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index acde624f7..eb8e176ec 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1094,7 +1094,8 @@ enum ASTNodes { // typed function references opcodes - CallRef = 0x14, + CallRefUnannotated = 0x14, + CallRef = 0x17, RetCallRef = 0x15, // gc opcodes @@ -1742,7 +1743,8 @@ public: void visitTryOrTryInBlock(Expression*& out); void visitThrow(Throw* curr); void visitRethrow(Rethrow* curr); - void visitCallRef(CallRef* curr); + void visitCallRef(CallRef* curr, + std::optional maybeType = std::nullopt); void visitRefAs(RefAs* curr, uint8_t code); [[noreturn]] void throwError(std::string text); -- cgit v1.2.3