Created
May 17, 2016 11:52
-
-
Save niner/6b79af9b3ddb67178c05861e5ae6898f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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