Skip to content

Commit

Permalink
make warnings about undefined values in regexes matches useful
Browse files Browse the repository at this point in the history
before:
  perl6-m -e 'Any ~~ /./'
  use of uninitialized value of type Any in string context
    in any !cursor_init at gen/moar/stage2/QRegex.nqp:1068

  perl6-m -e 'EVAL "Any ~~ /./"'
  use of uninitialized value of type Any in string context
    in any !cursor_init at gen/moar/stage2/QRegex.nqp:1069

after:
  perl6-m -e 'Any ~~ /./'
  use of uninitialized value of type Any in string context
    in block <unit> at -e:1

  perl6-m -e 'EVAL "Any ~~ /./"'
  use of uninitialized value of type Any in string context
    in block <unit> at EVAL_0:1
  • Loading branch information
FROGGS committed Jan 10, 2015
1 parent a81ce33 commit ae9a738
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/Backtrace.pm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ my class Backtrace is List {
next if $file eq 'src/gen/BOOTSTRAP.nqp' ||
$file eq 'src/gen/m-BOOTSTRAP.nqp' ||
$file eq 'src\\gen\\BOOTSTRAP.nqp' ||
$file eq 'src\\gen\\m-BOOTSTRAP.nqp';
$file eq 'src\\gen\\m-BOOTSTRAP.nqp' ||
$file eq 'gen/parrot/stage2/QRegex.nqp' ||
$file eq 'gen/jvm/stage2/QRegex.nqp' ||
$file eq 'gen/moar/stage2/QRegex.nqp';
last if $file eq 'src/stage2/gen/NQPHLL.nqp' ||
$file eq 'src\\stage2\\gen\\NQPHLL.nqp' ||
$file eq 'gen/parrot/stage2/NQPHLL.nqp' ||
Expand Down

0 comments on commit ae9a738

Please sign in to comment.