cwebber pushed a commit to branch compile-to-js-merge
in repository guile.

commit 024bd93b0d6ee6ebf03467dd5cbb6eb37d46713f
Author: Ian Price <[email protected]>
AuthorDate: Fri Aug 11 14:02:13 2017 +0100

    modules should be passed current continuation
    
    * module/language/js-il/runtime.js (primitive-load-path): modules
      should be passed the current continuation.
---
 module/language/js-il/runtime.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/module/language/js-il/runtime.js b/module/language/js-il/runtime.js
index 970e33c..c9328a6 100644
--- a/module/language/js-il/runtime.js
+++ b/module/language/js-il/runtime.js
@@ -1085,8 +1085,7 @@ var boot_modules = {};
 
 function scm_primitive_load_path (self, cont, path) {
     if (path.s in boot_modules) {
-        boot_modules[path.s](); // FIXME: note modules should share cont?
-        return cont(scheme.UNDEFINED);
+        return boot_modules[path.s](cont);
     } else {
         console.log("primitive load path", arguments);
         not_implemented_yet();

Reply via email to