We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c0460 commit e9f64b9Copy full SHA for e9f64b9
src/vm/js/nqp-runtime/deserialization.js
@@ -762,11 +762,20 @@ class BinaryCursor {
762
this.deserializeCtx(inner, newOuters);
763
}
764
765
+ ctx.closuresUsingThis = [];
766
for (var closure of context.closures) {
767
var closureTemplate = closure.staticCode.closureTemplate;
768
var codeRef = this.sc.codeRefs[closure.index];
769
while (newOuters.length < closure.staticCode.closureTemplate.length) newOuters.unshift(null);
770
codeRef.capture(closureTemplate.apply(null, newOuters));
771
+
772
+ ctx.closuresUsingThis.push(codeRef);
773
+ for (let outer of outers) {
774
+ if (!outer.closuresUsingThis) outer.closuresUsingThis = [];
775
+ outer.closuresUsingThis.push(codeRef);
776
+ }
777
778
+ codeRef.outerCtx = ctx;
779
780
781
0 commit comments