Permalink
Browse files

Fixed guards, didn't I fix this a month ago?

  • Loading branch information...
1 parent c9ecb8a commit effabc7d4b357a9a91f0e88120849102bab12fb7 @phyrex1an phyrex1an committed May 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 haskell.interpreter.js
View
@@ -258,7 +258,7 @@
for (var j in matchedFunc.expression) {
var guard = matchedFunc.expression[j][0];
var expression = matchedFunc.expression[j][1];
- var guardResult = guard.eval(newEnv);
+ var guardResult = (new interpreter.HeapPtr(new interpreter.Closure(newEnv, guard))).dereference();
if (guardResult.identifier == "True") {
return new interpreter.Closure(newEnv, expression);
}

0 comments on commit effabc7

Please sign in to comment.