summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index eb5dcd5a7..399910e7a 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -1419,6 +1419,9 @@ public:
}
const auto& value = flow.getSingleValue();
NOTE_EVAL1(value);
+ if (value.isNull()) {
+ trap("null ref");
+ }
return Literal(value.geti31(curr->signed_));
}