Skip to content

Commit

Permalink
[js] Hack that allows code generated by rakudo.js to load the setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Nov 16, 2016
1 parent 8d18c6c commit b802319
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vm/js/nqp-runtime/code-ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class CodeRef extends NQPObject {
closure.codeObj = this.codeObj;
closure.$$call = block;
closure.staticCode = this;
// HACK - needed for code generated by rakudo.js to load the setting
closure.forcedOuterCtx = this.forcedOuterCtx;
return closure;
}

Expand Down

0 comments on commit b802319

Please sign in to comment.