Actually return the return value from the interpreter.
authorErik Verbruggen <erik.verbruggen@digia.com>
Tue, 20 Nov 2012 08:48:11 +0000 (09:48 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 20 Nov 2012 11:04:27 +0000 (12:04 +0100)
Change-Id: I38cb4bc431f1bab796f08fc217747e06070a2c78
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
moth/qv4vme_moth.cpp

index 080d395..48a02f6 100644 (file)
@@ -360,8 +360,7 @@ void **VME::instructionJumpTable()
 VM::Value VME::exec(VM::ExecutionContext *ctxt, const uchar *code)
 {
     VME vme;
-    vme(ctxt, code);
-    return VM::Value::undefinedValue();
+    return vme(ctxt, code);
 }
 
 void VME::restoreState(VM::ExecutionContext *context, int &targetTempIndex, const uchar *&code)