This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: make callbacks run in global context
Callbacks that were passed to the binding layer ran in the context of the (internal) binding object. Make sure they run in the global context. Before: fs.symlink('a', 'b', function() { console.log(this); // prints "{ oncomplete: [Function] }" }); After: fs.symlink('a', 'b', function() { console.log(this); // prints "{ <global object> }" });
- Loading branch information
1 parent
c381662
commit 463d6ba
Showing
2 changed files
with
53 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters