Skip to content

Commit d83fbb0

Browse files
committed
Merge pull request #43 from newscred/fix-invalid-array-length-error
Fix Invalid array length in Node v0.10.31
2 parents 35a4808 + 61cf28f commit d83fbb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/longjohn.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/longjohn.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ limit_frames = (stack) ->
9595
if previous?.__previous__?.__cached_trace__
9696
len = previous.__previous__.__cached_trace__.length
9797
previous = stack
98-
while previous? and previous != which_previous_must_delete.__previous__
98+
while previous? and previous != which_previous_must_delete.__previous__ and previous.__cached_trace__.length
9999
previous.__cached_trace__.length -= (len+1)
100100
previous = previous.__previous__
101101
delete previous.__previous__

0 commit comments

Comments
 (0)