Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index eaae9ac5f7b93aac7e60523cb2a635f174226f8f..2c83f823556c852a38660ca87b18341ab87fb5db 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -244,7 +244,7 @@ void InstantiateModuleFromAsm(const v8::FunctionCallbackInfo<v8::Value>& args) { |
DCHECK(!maybe_init.is_null()); |
i::Handle<i::Object> init = maybe_init.ToHandleChecked(); |
- i::Handle<i::Object> undefined(isolate->heap()->undefined_value(), isolate); |
+ i::Handle<i::Object> undefined = isolate->factory()->undefined_value(); |
i::Handle<i::Object>* foreign_args_array = |
new i::Handle<i::Object>[foreign_args->length()]; |
for (int j = 0; j < foreign_args->length(); j++) { |