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; }