Created
December 17, 2011 14:20
-
-
Save bjouhier/1490321 to your computer and use it in GitHub Desktop.
fstreamline bug repro with fn.call
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
"use strict"; | |
if (!require('streamline/module')(module)) return; | |
function foo(_, i) { | |
return 2 * i; | |
} | |
function bar(_, f, i) { | |
return f.call(null, _, i); | |
} | |
console.log("BEFORE") | |
var r = bar(_, foo, 3); | |
console.log("AFTER " + r); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment