Challenge now display console.log in output window

This commit is contained in:
Berkeley Martinez
2016-05-27 17:11:25 -07:00
parent 256182836a
commit 2466d66eb1
10 changed files with 127 additions and 55 deletions

View File

@@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', function() {
output = eval(source);
/* eslint-enable no-eval */
} catch (e) {
output = e.message;
output = e.message + '\n' + e.stack;
window.__err = e;
}
return output;
@@ -68,17 +68,6 @@ document.addEventListener('DOMContentLoaded', function() {
.toArray();
};
// used when updating preview without running tests
document.__checkPreview$ = function checkPreview$(args) {
if (window.__err) {
return Rx.Observable.throw(window.__err);
}
return Rx.Observable.just(args);
};
// now that the runPreviewTest$ is defined
// we set the subject to true
// this will let the updatePreview
// script now that we are ready.
// notify that the window methods are ready to run
frameReady.onNext(null);
});