From 93b3d3d8a68869013f9a232153488865e77b1a4b Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 15 Mar 2011 17:17:26 -0600 Subject: [PATCH] fix IpPromise::resolved This method was returning true when it shouldn't have, and this led to an assertion failure when we actually tried to get the promise's value. --- src/compiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index 01522a8ef7..2deeffe5a7 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -527,7 +527,8 @@ class IpPromise: public Promise { } virtual bool resolved() { - return c->machineCode != 0; + return c->machineCode != 0 + and c->logicalCode[logicalIp]->machineOffset->resolved(); } Context* c;