Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index 9345cb65b5af7f53449fbb15b4874e49f3f067cb..8c28e18410926305dfbf5db3165ff55da2ae5d45 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -699,6 +699,10 @@ void WasmJs::InstallWasmConstructors(Isolate* isolate, |
isolate->native_context()->wasm_compile_error_function()); |
JSObject::AddProperty(webassembly, isolate->factory()->CompileError_string(), |
compile_error, attributes); |
+ Handle<JSFunction> link_error( |
+ isolate->native_context()->wasm_link_error_function()); |
+ JSObject::AddProperty(webassembly, isolate->factory()->LinkError_string(), |
+ link_error, attributes); |
Handle<JSFunction> runtime_error( |
isolate->native_context()->wasm_runtime_error_function()); |
JSObject::AddProperty(webassembly, isolate->factory()->RuntimeError_string(), |