Skip to content

Commit

Permalink
Use an invalid identifier as the es6-shim iterator key so it doesn’t …
Browse files Browse the repository at this point in the history
…show up in the console as easily.
  • Loading branch information
ljharb committed Nov 21, 2014
1 parent beee6a9 commit f19261a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@
// work properly with each other, even though we don't have full Iterator
// support. That is, `Array.from(map.keys())` will work, but we don't
// pretend to export a "real" Iterator interface.
var $iterator$ = (typeof Symbol === 'function' && Symbol.iterator) ||
'_es6shim_iterator_';
var $iterator$ = (typeof Symbol === 'function' && Symbol.iterator) || '_es6-shim iterator_';
// Firefox ships a partial implementation using the name @@iterator.
// https://bugzilla.mozilla.org/show_bug.cgi?id=907077#c14
// So use that name if we detect it.
Expand Down

0 comments on commit f19261a

Please sign in to comment.