Skip to content

Commit a098d8b

Browse files
committed
Add falsey arguments check to loop condition
1 parent d4f36cb commit a098d8b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

stack-generator.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
}
2222

2323
var curr = arguments.callee;
24-
while (curr && stack.length < maxStackSize) {
25-
if (!curr['arguments']) {
26-
break;
27-
}
24+
while (curr && stack.length < maxStackSize && curr['arguments']) {
2825
// Allow V8 optimizations
2926
var args = new Array(curr['arguments'].length);
3027
for (var i = 0; i < args.length; ++i) {

0 commit comments

Comments
 (0)