Merge pull request #101 from m4burns/master

Minor runtime fixes
This commit is contained in:
Danny Yoo 2014-03-21 15:20:42 -07:00
commit 8d8853fa76
2 changed files with 4 additions and 4 deletions

View File

@ -101,8 +101,7 @@
(succ || function () {}).apply(null, arguments);
};
var wrappedFail = function(err) {
releaseLock();
(fail || function () {})(err);
(fail || function () {})(err);
};
if (!(baselib.arity.isArityMatching(v.racketArity, args.length - 2))) {
var msg = baselib.format.format(
@ -159,8 +158,9 @@
MACHINE.v = oldVal;
MACHINE.a = oldArgcount;
MACHINE.p = oldProc;
// The lock is released by _trampoline in this case.
wrappedFail(e);
};
};
MACHINE._trampoline(v.label, false, releaseLock);
});

View File

@ -908,7 +908,7 @@
var i;
machine = machine || runtime.currentMachine;
for (i = 0; i < machine.mainModules.length; i++) {
var ns = machine.modules[mainModules[i]].getExternalExports();
var ns = machine.modules[machine.mainModules[i]].getExternalExports();
if(ns.hasKey(name)) {
return ns.get(name);
}