Skip to content

Commit

Permalink
Fix no worries pragma
Browse files Browse the repository at this point in the history
Looks like it never worked, despite the machinery being there, as
it expected a "no-worries" pragma to be set to a true value.
  • Loading branch information
zoffixznet committed Jan 14, 2018
1 parent f8953ee commit f5b4d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -304,7 +304,7 @@ role STD {
self
}
method typed_worry($type_str, *%opts) {
unless self.pragma('no-worries') {
if self.pragma('worries') {
self.pragma('fatal')
?? self.typed_sorry($type_str, |%opts)
!! @*WORRIES.push($*W.typed_exception(
Expand Down Expand Up @@ -489,6 +489,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
# We could start out TOP with a fatalizing language in self, conceivably...
my $*FATAL := self.pragma('fatal'); # also set if somebody calls 'use fatal' in mainline
self.set_pragma('worries', 1);
# A cacheable false dynvar value.
my $*WANTEDOUTERBLOCK := 0;
Expand Down

0 comments on commit f5b4d89

Please sign in to comment.