From ed67c5b743b00c9c9e0f0cf219320f69b1e20740 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Thu, 27 Jun 2024 15:45:35 +0200 Subject: [PATCH] return correct type --- src/node_wasi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_wasi.cc b/src/node_wasi.cc index b77a1f57854261..0a5e88b1a9ce6d 100644 --- a/src/node_wasi.cc +++ b/src/node_wasi.cc @@ -251,7 +251,7 @@ R WASI::WasiFunction::FastCallback( v8::Isolate* isolate = receiver->GetIsolate(); if (wasi->memory_.IsEmpty()) { THROW_ERR_WASI_NOT_STARTED(isolate); - return; + return EinvalError(); } Local ab = wasi->memory_.Get(isolate)->Buffer(); size_t mem_size = ab->ByteLength();