summaryrefslogtreecommitdiff
path: root/src/asmjs/asm_v_wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
-rw-r--r--src/asmjs/asm_v_wasm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp
index 314c2494f..bbbaad5bc 100644
--- a/src/asmjs/asm_v_wasm.cpp
+++ b/src/asmjs/asm_v_wasm.cpp
@@ -21,6 +21,10 @@
namespace wasm {
JsType wasmToJsType(Type type) {
+ if (type.isRef()) {
+ return JS_REF;
+ }
+
TODO_SINGLE_COMPOUND(type);
switch (type.getBasic()) {
case Type::i32: