Skip to content

Commit

Permalink
return correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
gahaas committed Jun 27, 2024
1 parent f611a94 commit ed67c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_wasi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ R WASI::WasiFunction<FT, F, R, Args...>::FastCallback(
v8::Isolate* isolate = receiver->GetIsolate();
if (wasi->memory_.IsEmpty()) {
THROW_ERR_WASI_NOT_STARTED(isolate);
return;
return EinvalError<R>();
}
Local<ArrayBuffer> ab = wasi->memory_.Get(isolate)->Buffer();
size_t mem_size = ab->ByteLength();
Expand Down

0 comments on commit ed67c5b

Please sign in to comment.