summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorRafael Gonzaga <rafael.nunu@hotmail.com>2022-09-14 09:47:40 -0300
committerGitHub <noreply@github.com>2022-09-14 12:47:40 +0000
commitd3cb193561db6282de8581e6d2eaaf341d8300eb (patch)
tree8132863ea9cc216766cf469311450ef2e64f8224 /lib/fs.js
parentc04d87d9ef76d3dbbcb8b3f4980c1deb803452db (diff)
downloadnode-new-d3cb193561db6282de8581e6d2eaaf341d8300eb.tar.gz
src: make ReqWrap weak
This commit allows throwing an exception after creating `FSReqCallback` Co-authored-by: Anna Henningsen <anna@addaleax.net> PR-URL: https://github.com/nodejs/node/pull/44074 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/fs.js')
-rw-r--r--lib/fs.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/fs.js b/lib/fs.js
index b7448bed62..bbf08f85b1 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -24,10 +24,6 @@
'use strict';
-// When using FSReqCallback, make sure to create the object only *after* all
-// parameter validation has happened, so that the objects are not kept in memory
-// in case they are created but never used due to an exception.
-
const {
ArrayPrototypePush,
BigIntPrototypeToString,