Skip to content

Instantly share code, notes, and snippets.

@bjouhier bjouhier/callrepro
Created Dec 17, 2011

Embed
What would you like to do?
fstreamline bug repro with fn.call
"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
You can’t perform that action at this time.