We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f24aff commit 42ecedeCopy full SHA for 42ecede
src/node_dir.cc
@@ -321,10 +321,8 @@ void DirHandle::Read(const FunctionCallbackInfo<Value>& args) {
321
static_cast<int>(req_wrap_sync.req.result),
322
encoding)
323
.ToLocal(&js_array)) {
324
- // TODO(anonrig): Initializing BufferValue here is wasteful.
325
CHECK(try_catch.CanContinue());
326
- BufferValue error_payload(isolate, try_catch.Exception());
327
- env->ThrowError(error_payload.out());
+ try_catch.ReThrow();
328
return;
329
}
330
0 commit comments