Skip to content

Commit

Permalink
typeof is an operator, not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 5, 2014
1 parent cd51c2b commit 5404590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
o[$iterator$] = impl;
defineProperties(prototype, o);
/* jshint notypeof: true */
if (!prototype[$iterator$] && typeof($iterator$)==='symbol') {
if (!prototype[$iterator$] && typeof $iterator$ === 'symbol') {
// implementations are buggy when $iterator$ is a Symbol
prototype[$iterator$] = impl;
}
Expand Down

0 comments on commit 5404590

Please sign in to comment.