diff --git a/src/node_external_reference.h b/src/node_external_reference.h index 306c726631a214..58b8f4bed2fcfd 100644 --- a/src/node_external_reference.h +++ b/src/node_external_reference.h @@ -90,6 +90,7 @@ class ExternalReferenceRegistry { V(uv) \ V(v8) \ V(zlib) \ + V(wasm_web_api) \ V(worker) #if NODE_HAVE_I18N_SUPPORT diff --git a/src/node_wasm_web_api.cc b/src/node_wasm_web_api.cc index fcb845d08b0dfe..1d3febdca6e52b 100644 --- a/src/node_wasm_web_api.cc +++ b/src/node_wasm_web_api.cc @@ -41,6 +41,7 @@ Local WasmStreamingObject::Initialize(Environment* env) { void WasmStreamingObject::RegisterExternalReferences( ExternalReferenceRegistry* registry) { + registry->Register(New); registry->Register(Push); registry->Register(Finish); registry->Register(Abort); @@ -198,6 +199,8 @@ void Initialize(Local target, void RegisterExternalReferences(ExternalReferenceRegistry* registry) { registry->Register(SetImplementation); + registry->Register(StartStreamingCompilation); + WasmStreamingObject::RegisterExternalReferences(registry); } } // namespace wasm_web_api