BYK / ES5

A library to introduce EcmaScript 5 features to all browsers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid variable name in some Array functions

BYK opened this issue · comments

var res = [1,2].some(function(i, a, v) { return true;});
var res = [1,2].filter(function(i, a, v) { return true; });

throw an exception since an inavlid variable name "fun" is used instead of "callback".