summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index a32ae6344..92f562b48 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -117,9 +117,8 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
assert(false && "v128 not implemented yet");
case Type::funcref:
case Type::externref:
- case Type::nullref:
case Type::exnref:
- globals[import->name] = {Literal::makeNullref()};
+ globals[import->name] = {Literal::makeNull(import->type)};
break;
case Type::none:
case Type::unreachable: