Skip to content

Instantly share code, notes, and snippets.

@bjouhier
Created December 17, 2011 14:20
Show Gist options
  • Save bjouhier/1490321 to your computer and use it in GitHub Desktop.
Save bjouhier/1490321 to your computer and use it in GitHub Desktop.
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