Le 17/12/2013 10:19, Shijun He a écrit :
There are some methods using reserved word "delete", such as Map.prototype.delete, Set.prototype.delete... Though it is allowed since ES5, I think we'd better avoid it because it cause es6 shim solution fail on legacy browsers such as IE8.
Note that there is a warning [1] (maybe arguably). Among other incompatibilities, "size" is a getter too.

myMap.delete fails, but myMap['delete'] should work.

David

[1] https://github.com/paulmillr/es6-shim/blob/4322eae20b6f8a7769fa1d89ac207ef8ee9e1ee4/es6-shim.js#L662
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to