Skip to content

Commit

Permalink
Fix error in es6symbol with IE8 (Modernizr#2630)
Browse files Browse the repository at this point in the history
Keyword 'for' in `Symbol.for` caused `Undefined identifier` error in IE8.
  • Loading branch information
toddwong authored and rejas committed Jan 18, 2021
1 parent b1131f8 commit e1fbec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/es6/symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Check if browser implements ECMAScript 6 Symbol per specification.
*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('es6symbol', !!(typeof(Symbol)==="function" &&
Symbol.for &&
Symbol['for'] &&
Symbol.hasInstance &&
Symbol.isConcatSpreadable &&
Symbol.iterator &&
Expand Down

0 comments on commit e1fbec3

Please sign in to comment.