[1,2,3].map(function foo() {});

foo(); //foo is not a function!