Skip to content

Commit

Permalink
Merge pull request mishoo#200 from johnjbarton/01a83b461f541898cb4b2f…
Browse files Browse the repository at this point in the history
…9ef033245c1a7ee18b

Small fix to slice() to make it more robust and less confusing.
  • Loading branch information
mishoo committed Aug 16, 2011
2 parents b5d9e39 + 01a83b4 commit a3c14f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ function array_to_hash(a) {
};

function slice(a, start) {
return Array.prototype.slice.call(a, start == null ? 0 : start);
return Array.prototype.slice.call(a, start || 0);
};

function characters(str) {
Expand Down

0 comments on commit a3c14f7

Please sign in to comment.