mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
Unwind prompt frames
* module/language/js-il/runtime.js(unwind): Unwind prompts.
This commit is contained in:
parent
2da7a82d9d
commit
7438a192f8
1 changed files with 2 additions and 1 deletions
|
@ -541,7 +541,8 @@ scheme.primitives["wind"] = function(enter, leave) {
|
|||
|
||||
scheme.primitives["unwind"] = function () {
|
||||
var frame = scheme.dynstack.shift();
|
||||
if (!(frame instanceof scheme.frame.DynWind)) {
|
||||
if (!(frame instanceof scheme.frame.DynWind) &&
|
||||
!(frame instanceof scheme.frame.Prompt)) {
|
||||
throw "not a dynamic wind frame";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue