diff options
author | Rafael Gonzaga <rafael.nunu@hotmail.com> | 2022-09-14 09:47:40 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 12:47:40 +0000 |
commit | d3cb193561db6282de8581e6d2eaaf341d8300eb (patch) | |
tree | 8132863ea9cc216766cf469311450ef2e64f8224 /lib/fs.js | |
parent | c04d87d9ef76d3dbbcb8b3f4980c1deb803452db (diff) | |
download | node-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.js | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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, |