Skip to content

Commit

Permalink
Checking the char directly rather than using charCode and a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 2, 2014
1 parent 6c932ec commit 93e4185
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 @@ -1832,7 +1832,7 @@
// fast check for leading '$'
if (k.charCodeAt(0) === 36) {
k = k.slice(1);
} else if (k.charCodeAt(0) === 110 /* 'n' */) {
} else if (k.charAt(0) === 'n') {
k = +k.slice(1);
} else {
k = +k;
Expand Down

0 comments on commit 93e4185

Please sign in to comment.