From 959cccd2b83d8b73bd4c586363bd15f74ee5d5cf Mon Sep 17 00:00:00 2001 From: jmoenig Date: Sat, 27 Apr 2019 10:04:41 +0200 Subject: [PATCH] make sure filtered linked lists end well formed --- src/threads.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threads.js b/src/threads.js index f1ff6ade..1025e3a9 100644 --- a/src/threads.js +++ b/src/threads.js @@ -2278,6 +2278,7 @@ Process.prototype.reportKeep = function (predicate, list) { this.context.accumulator.source.cdr(); } if (this.context.accumulator.remaining === 0) { + this.context.accumulator.end.rest = new List(); this.returnValueToParentContext( this.context.accumulator.target.cdr() );