[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 26/99: abort-to-prompt takes multiple arguments
From: |
Christopher Allan Webber |
Subject: |
[Guile-commits] 26/99: abort-to-prompt takes multiple arguments |
Date: |
Sun, 10 Oct 2021 21:50:48 -0400 (EDT) |
cwebber pushed a commit to branch compile-to-js-merge
in repository guile.
commit ee42731b574745ea6c21ae572b30a160a4a80407
Author: Ian Price <ianprice90@googlemail.com>
AuthorDate: Tue Jun 16 23:17:09 2015 +0100
abort-to-prompt takes multiple arguments
---
module/language/js-il/runtime.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/module/language/js-il/runtime.js b/module/language/js-il/runtime.js
index 232e9fa..d5b7c9b 100644
--- a/module/language/js-il/runtime.js
+++ b/module/language/js-il/runtime.js
@@ -297,8 +297,9 @@ var values = function(self, k, arg) {
return k(arg);
};
-var abort_to_prompt = function(self, k, prompt, arg) {
+var abort_to_prompt = function(self, k, prompt) {
+ var args = Array.prototype.slice.call(arguments, 3);
var idx = find_prompt(prompt);
var spec = scheme.dynstack[idx];
@@ -315,8 +316,8 @@ var abort_to_prompt = function(self, k, prompt, arg) {
unwind(idx);
var handler = spec[2];
-
- return handler(kont, arg);
+ args.unshift(kont);
+ return handler.apply(handler, args);
};
var call_with_values = function (self, k, producer, consumer) {
- [Guile-commits] 10/99: fix makefile, (continued)
- [Guile-commits] 10/99: fix makefile, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 11/99: Compile rest args, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 16/99: Remove superfluous space, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 20/99: Implement keyword argument parsing, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 12/99: Compile string constants, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 13/99: Mangle js identifiers, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 15/99: Handle case-lambda via a jump table, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 19/99: Simplify output Javascript, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 21/99: Primitives should return Scheme Booleans, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 23/99: Compile cps $prompt form to javascript, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 26/99: abort-to-prompt takes multiple arguments,
Christopher Allan Webber <=
- [Guile-commits] 34/99: Change function type representation, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 33/99: Change program type representation, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 31/99: Different types for Continuation and Variable identifiers, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 29/99: Use scheme.frame.Prompt objects for prompts on dynstack, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 30/99: Implement fluid primitives, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 36/99: Handle more identifier characters, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 47/99: Add some primitives to runtime.js, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 50/99: Add more variables to no-values-primitives, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 55/99: Implement immediate version of vector primitives., Christopher Allan Webber, 2021/10/10
- [Guile-commits] 62/99: scm_struct_init skips hidden fields., Christopher Allan Webber, 2021/10/10