Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index 740199c29817a5a6ab4cf4ffb6a37f1bd16ec3e1..0f192508ba7d47211f380a4a48c724693202638c 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -559,6 +559,9 @@ class WasmFullDecoder : public WasmDecoder { |
ssa_env->control = start; |
ssa_env->effect = start; |
SetEnv("initial", ssa_env); |
+ if (builder_) { |
+ builder_->StackCheck(position()); |
+ } |
} |
TFNode* DefaultValue(LocalType type) { |