Skip to content

Commit

Permalink
FIXED: WASM: for(x of prolog.query(...)) lost last answer
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 20, 2024
1 parent 8863145 commit 5b52f6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wasm/prolog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1425,9 +1425,7 @@ class Query {
return { done: true };
case prolog.PL_S_LAST:
this.close();
return { done: true,
value: this.map ? this.map.call(this, argv) : argv
};
/*FALLTHROUGH*/
case prolog.PL_S_TRUE:
return { done: false,
value: this.map ? this.map.call(this, argv) : argv
Expand Down

0 comments on commit 5b52f6d

Please sign in to comment.