I don’t know whether arrow functions bind arguments
to a lexical scope or not.
Take a look at this example (the same concept can be used for this
):
var b = function() { return () => console.log(arguments); };
b(1,2,3)(4,5,6); // different result of chrome vs FF.
When I run this on Chrome, I get [1,2,3]
, but on Firefox, I get [4,5,6]
. What’s going on?