diff --git a/src/main.js b/src/main.js index c45b6697..d0fe2578 100644 --- a/src/main.js +++ b/src/main.js @@ -231,7 +231,7 @@ function prepare(codeAndAssets, k, options) { // We store the trampoline runner so that header functions that call // external asynchronous functions can resume execution in callbacks. - global.trampolineRunner = runner; + global.resumeTrampoline = runner; // Before the program finishes, we tell the param store to finish up // gracefully (e.g., shutting down a connection to a remote store). diff --git a/src/params/store/mongo.js b/src/params/store/mongo.js index 4aca871f..07ef2659 100644 --- a/src/params/store/mongo.js +++ b/src/params/store/mongo.js @@ -20,7 +20,7 @@ var _collection = null; function resume(thunk) { - global.trampolineRunner(thunk); + global.resumeTrampoline(thunk); } function assertInit() {