aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-06-06 21:33:29 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-06-06 21:49:39 +0200
commit463d6bac8b349acc462d345a6e298a76f7d06fb1 (patch)
tree6a12244fea62e17b8a703cf689e5e97531b08864 /src
parentc381662cac0e897b4bfdb2c31cd3117c5ecd2130 (diff)
downloadandroid-node-v8-463d6bac8b349acc462d345a6e298a76f7d06fb1.tar.gz
android-node-v8-463d6bac8b349acc462d345a6e298a76f7d06fb1.tar.bz2
android-node-v8-463d6bac8b349acc462d345a6e298a76f7d06fb1.zip
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> }" });
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions