catch errrors

This commit is contained in:
Torsten Ruger 2015-05-22 22:50:40 +03:00
parent b687255976
commit 174afb33fb

View File

@ -41,10 +41,15 @@ module Virtual
attr_reader :message , :passes , :space , :init , :main
def run_passes
#TODO puts "INIT #{@init}"
@passes.each do |pass_class|
blocks = [@init] + @main.blocks
blocks = []#[@init] #TODO + @main.blocks
@space.classes.values.each do |c|
c.instance_methods.each {|f| blocks += f.blocks }
c.instance_methods.each do |f|
nb = f.info.blocks
raise "nil blocks " unless nb
blocks += nb
end
end
#puts "running #{pass_class}"
blocks.each do |block|