Fix crashes from veritas

This commit is contained in:
Markus Schirp 2012-12-08 03:11:26 +01:00
parent 3605a0a809
commit f6edfb06de
3 changed files with 12 additions and 1 deletions

View file

@ -1,7 +1,16 @@
# v0.2.4 2012-12-08
* [fixed] Crash on mutating yield, added a noop for now
* [fixed] Crash on singleton methods defined on other than constants or self
[Compare v0.2.3..v0.2.4](https://github.com/mbj/mutant/compare/v0.2.1...v0.2.2)
# v0.2.3 2012-12-08
* [fixed] Prepend extra elements to hash and array instead of append. This fixes unkillable mutators in parallel assignments!
[Compare v0.2.2..v0.2.3](https://github.com/mbj/mutant/compare/v0.2.1...v0.2.2)
# v0.2.2 2012-12-07
* [feature] Add a shitload of operator expansions for dm2 strategy

View file

@ -104,7 +104,8 @@ module Mutant
when Rubinius::AST::ConstantAccess
receiver_name?(receiver)
else
raise 'Can only match receiver on Rubinius::AST::Self or Rubinius::AST::ConstantAccess'
$stderr.puts "Unable to find singleton method definition only match receiver on Rubinius::AST::Self or Rubinius::AST::ConstantAccess, got #{receiver.class}"
false
end
end

View file

@ -37,6 +37,7 @@ module Mutant
handle(Rubinius::AST::OpAssign1)
handle(Rubinius::AST::Or)
handle(Rubinius::AST::ConstantAccess)
handle(Rubinius::AST::Yield)
private