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 f399667 commit 715baf8Copy full SHA for 715baf8
lib/fs.js
@@ -145,8 +145,8 @@ function makeCallback(cb) {
145
throw new errors.TypeError('ERR_INVALID_CALLBACK');
146
}
147
148
- return function() {
149
- return cb.apply(undefined, arguments);
+ return function(...args) {
+ return Reflect.apply(cb, undefined, args);
150
};
151
152
0 commit comments