test cases appear to be running again
This commit is contained in:
parent
55ca576a43
commit
f39b192fee
|
@ -267,16 +267,14 @@ MACHINE.modules[~s] =
|
|||
(")
|
||||
(assemble/write-invoke stmts op)
|
||||
(fprintf op ")(MACHINE,
|
||||
function() {
|
||||
if (window.console && window.console.log) {
|
||||
window.console.log('loaded ' + ~s);
|
||||
}
|
||||
plt.runtime.setReadyTrue();
|
||||
},
|
||||
function(err) {
|
||||
alert(err.message)
|
||||
},
|
||||
PARAMS);
|
||||
function() {
|
||||
if (window.console && window.console.log) {
|
||||
window.console.log('loaded ' + ~s);
|
||||
}
|
||||
plt.runtime.setReadyTrue();
|
||||
},
|
||||
FAIL,
|
||||
PARAMS);
|
||||
});\n"
|
||||
(format "~a" (source-name src)))
|
||||
(define stop-time (current-inexact-milliseconds))
|
||||
|
@ -289,8 +287,11 @@ MACHINE.modules[~s] =
|
|||
|
||||
|
||||
(define (on-last-src)
|
||||
(fprintf op "plt.runtime.setReadyTrue();")
|
||||
(fprintf op "SUCCESS();"))
|
||||
(fprintf op "plt.runtime.ready(
|
||||
function() {
|
||||
plt.runtime.setReadyTrue();
|
||||
SUCCESS();
|
||||
});"))
|
||||
|
||||
|
||||
(define packaging-configuration
|
||||
|
@ -310,7 +311,7 @@ MACHINE.modules[~s] =
|
|||
|
||||
(fprintf op "var invoke = (function(MACHINE, SUCCESS, FAIL, PARAMS) {")
|
||||
(fprintf op " plt.runtime.ready(function() {")
|
||||
(fprintf op "plt.runtime.setReadyFalse();")
|
||||
(fprintf op " plt.runtime.setReadyFalse();")
|
||||
(make (list (make-MainModuleSource source-code))
|
||||
packaging-configuration)
|
||||
(fprintf op " });");
|
||||
|
|
|
@ -585,7 +585,7 @@
|
|||
// setReadyTrue is called.
|
||||
var ready, setReadyTrue, setReadyFalse;
|
||||
(function() {
|
||||
var runtimeIsReady = false;
|
||||
var runtimeIsReady = true;
|
||||
var readyWaiters = [];
|
||||
var notifyWaiter = function(w) {
|
||||
w();
|
||||
|
|
|
@ -42,8 +42,12 @@ return (function(succ, fail, params) {
|
|||
}
|
||||
};
|
||||
return innerInvoke(machine,
|
||||
function() { plt.runtime.invokeMains(machine, succ, fail); },
|
||||
function(MACHINE, e) { fail(e); },
|
||||
function() {
|
||||
plt.runtime.invokeMains(machine, succ, fail);
|
||||
},
|
||||
function(MACHINE, e) {
|
||||
return fail(e);
|
||||
},
|
||||
myParams);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -26,11 +26,12 @@
|
|||
|
||||
(fprintf op #<<EOF
|
||||
return (function(succ, fail, params) {
|
||||
var myParams = { currentDisplayer: function(MACHINE, v) { params.currentDisplayer(v); }};
|
||||
return innerInvoke(new plt.runtime.Machine(),
|
||||
var machine = new plt.runtime.Machine();
|
||||
machine.params.currentDisplayer =
|
||||
function(MACHINE, v) { params.currentDisplayer(v); };
|
||||
return innerInvoke(machine,
|
||||
succ,
|
||||
function(MACHINE, exn) { fail(exn); },
|
||||
myParams);
|
||||
function(MACHINE, exn) { return fail(exn); });
|
||||
});
|
||||
});
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue
Block a user