Skip to content

Commit f12005b

Browse files
committed
[node][wasm] Avoid deprecated API
Use the new API which gets a `ModuleCachingCallback` parameter. The old API is deprecated and will soon be removed, see https://crrev.com/c/7078551.
1 parent b61852c commit f12005b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_wasm_web_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void WasmStreamingObject::Finish(const FunctionCallbackInfo<Value>& args) {
132132
CHECK(obj->streaming_);
133133

134134
CHECK_EQ(args.Length(), 0);
135-
obj->streaming_->Finish();
135+
obj->streaming_->Finish(WasmStreaming::ModuleCachingCallback{});
136136
}
137137

138138
void WasmStreamingObject::Abort(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
 (0)