Comparing version
@@ -111,18 +111,17 @@ /* | ||
while (this.frames.length !== 0) { | ||
cur = this.frames.pop(); | ||
cur = this.frames[this.frames.length - 1]; | ||
if (cur.shouldDelayExecution()) { | ||
this.frames.push(cur); | ||
cur.pushUnevaluatedArguments(this.frames); | ||
continue; | ||
} | ||
cur = this.frames.pop(); | ||
let result = cur.evaluate(); | ||
while (result === NULL) { | ||
cur = this.frames.pop(); | ||
cur = this.frames[this.frames.length - 1]; | ||
if (cur.shouldDelayExecution()) { | ||
this.frames.push(cur); | ||
cur.pushUnevaluatedArguments(this.frames); | ||
continue OUTER; | ||
} | ||
cur = this.frames.pop(); | ||
result = cur.evaluate(); | ||
@@ -129,0 +128,0 @@ } |
{ | ||
"name": "tallstack", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A library that allows you to define recursive functions in JavaScript without stack overflow.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10942
0.28%