Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
give eval()s a separate file annotation
  • Loading branch information
moritz committed Feb 12, 2012
1 parent 1200dd8 commit 9481a2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/control.pm
Expand Up @@ -159,6 +159,7 @@ sub eval(Str $code, :$lang = 'perl6') {
$P0 = getinterp
%r = $P0['context';1]
};
my $?FILES := 'eval_' ~ (state $no)++;
my $compiler := pir::compreg__PS($lang);
my $pbc := $compiler.compile($code, :outer_ctx($caller_ctx), :global(GLOBAL));
nqp::atpos($pbc, 0).set_outer_ctx($caller_ctx);
Expand Down

0 comments on commit 9481a2c

Please sign in to comment.