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

commit b939d51f8a8965f43a95bea9a7a3224ce99a891f
Author: Ian Price <[email protected]>
AuthorDate: Tue Jun 16 23:17:50 2015 +0100

    values takes multiple arguments
---
 module/language/js-il/runtime.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/module/language/js-il/runtime.js b/module/language/js-il/runtime.js
index d5b7c9b..c9bf8ee 100644
--- a/module/language/js-il/runtime.js
+++ b/module/language/js-il/runtime.js
@@ -292,9 +292,9 @@ var apply = function(self, k, f, arg) {
     return f.fun(f.freevars, k, arg);
 };
 
-var values = function(self, k, arg) {
-
-    return k(arg);
+var values = function(self, k) {
+    var args = Array.prototype.slice.call(arguments, 2);
+    return k.apply(k,args);
 };
 
 var abort_to_prompt = function(self, k, prompt) {

Reply via email to