Skip to content

Commit

Permalink
Fixed syntactic errors (final is a reserved word, no trailing ",") re…
Browse files Browse the repository at this point in the history
…ported by closure compiler.
  • Loading branch information
kvantetore committed Feb 12, 2014
1 parent e312722 commit c559ea2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@
var to = target < 0 ? Math.max(len + target, 0) : Math.min(target, len);
var from = start < 0 ? Math.max(len + start, 0) : Math.min(start, len);
var end = arguments.length > 2 ? arguments[2] : len;
var final = end < 0 ? Math.max(len + end, 0) : Math.min(end, len);
var count = Math.min(final - from, len - to);
var fin = end < 0 ? Math.max(len + end, 0) : Math.min(end, len);
var count = Math.min(fin - from, len - to);
var direction = 1;
if (from < to && to < (from + count)) {
direction = -1;
Expand Down Expand Up @@ -610,7 +610,7 @@
// isNaN is broken: it converts its argument to number, so
// isNaN('foo') => true
return value !== value;
},
}

});

Expand Down

0 comments on commit c559ea2

Please sign in to comment.