fix(node/fs): fs.close and fs.Dir.closeSync (#16686)

This commit is contained in:
Don Isaac
2025-01-24 05:58:07 -08:00
committed by GitHub
parent f7c5b0d5fc
commit 0d53353d36
5 changed files with 58 additions and 5 deletions

View File

@@ -1065,6 +1065,8 @@ JSC_DEFINE_HOST_FUNCTION(Bun::jsFunctionMakeErrorWithCode, (JSC::JSGlobalObject
return JSC::JSValue::encode(createError(globalObject, ErrorCode::ERR_STREAM_UNABLE_TO_PIPE, "Cannot pipe to a closed or destroyed stream"_s));
case ErrorCode::ERR_ILLEGAL_CONSTRUCTOR:
return JSC::JSValue::encode(createError(globalObject, ErrorCode::ERR_ILLEGAL_CONSTRUCTOR, "Illegal constructor"_s));
case ErrorCode::ERR_DIR_CLOSED:
return JSC::JSValue::encode(createError(globalObject, ErrorCode::ERR_DIR_CLOSED, "Directory handle was closed"_s));
default: {
break;