Skip to content

Instantly share code, notes, and snippets.

@niner
Created May 17, 2016 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/6b79af9b3ddb67178c05861e5ae6898f to your computer and use it in GitHub Desktop.
Save niner/6b79af9b3ddb67178c05861e5ae6898f to your computer and use it in GitHub Desktop.
diff --git a/src/core/control.pm b/src/core/control.pm
index ff4980f..b1d915f 100644
--- a/src/core/control.pm
+++ b/src/core/control.pm
@@ -218,6 +218,14 @@ proto sub EVAL(Cool $code, Str() :$lang = 'perl6', PseudoStash :$context, *%n) {
:global(GLOBAL),
:mast_frames(mast_frames),
);
+ note $compiler.compile(
+ $code.Stringy,
+ :outer_ctx($eval_ctx),
+ :global(GLOBAL),
+ :mast_frames(mast_frames),
+ :target<ast>,
+ :compunit_ok(1),
+ ).dump;
if $*W and $*W.is_precompilation_mode() { # we are still compiling
$*W.add_additional_frames(mast_frames);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment