mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
abort-to-prompt takes multiple arguments
This commit is contained in:
parent
cf905a7004
commit
ee42731b57
1 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue