From 42ecede55ae3366d90d79d8b63ac18213e142629 Mon Sep 17 00:00:00 2001 From: Seong Min Park <32555977+notoriousmango@users.noreply.github.com> Date: Sun, 14 Dec 2025 19:59:44 +0900 Subject: [PATCH] rethrow exceptions --- src/node_dir.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node_dir.cc b/src/node_dir.cc index c9173d404c79a6..596cb4fd64a045 100644 --- a/src/node_dir.cc +++ b/src/node_dir.cc @@ -321,10 +321,8 @@ void DirHandle::Read(const FunctionCallbackInfo& args) { static_cast(req_wrap_sync.req.result), encoding) .ToLocal(&js_array)) { - // TODO(anonrig): Initializing BufferValue here is wasteful. CHECK(try_catch.CanContinue()); - BufferValue error_payload(isolate, try_catch.Exception()); - env->ThrowError(error_payload.out()); + try_catch.ReThrow(); return; }