Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify "use fatal" implementation.
  • Loading branch information
jnthn committed Apr 8, 2015
1 parent a7b374d commit 3b45f6a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Perl6/Actions.nqp
Expand Up @@ -1148,13 +1148,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
# }
} elsif $<module_name> {
if ~$<module_name> eq 'fatal' {
my $*SCOPE := 'my';
declare_variable($/, QAST::Stmts.new(), '$', '*', 'FATAL', []);
$past := QAST::Op.new(
:op('p6store'), :node($/),
QAST::Var.new( :name('$*FATAL'), :scope('lexical') ),
QAST::Op.new( :op('p6bool'), QAST::IVal.new( :value(1) ) )
);
$*W.install_lexical_symbol($*W.cur_lexpad(), '$*FATAL', $*W.find_symbol(['True']));
}
elsif ~$<module_name> eq 'Devel::Trace' {
$STATEMENT_PRINT := 1;
Expand Down

0 comments on commit 3b45f6a

Please sign in to comment.