Skip to content

Commit b802319

Browse files
committed
[js] Hack that allows code generated by rakudo.js to load the setting.
1 parent 8d18c6c commit b802319

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vm/js/nqp-runtime/code-ref.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ class CodeRef extends NQPObject {
127127
closure.codeObj = this.codeObj;
128128
closure.$$call = block;
129129
closure.staticCode = this;
130+
// HACK - needed for code generated by rakudo.js to load the setting
131+
closure.forcedOuterCtx = this.forcedOuterCtx;
130132
return closure;
131133
}
132134

0 commit comments

Comments
 (0)