lib/superscript/runner.rb in superscript-0.3.2 vs lib/superscript/runner.rb in superscript-0.3.3

- old
+ new

@@ -15,10 +15,10 @@ trace = TracePoint.new do |tp| if ENV["SUPERSCRIPT_DEBUG"] p [@armed, tp.path, tp.lineno, tp.method_id, tp.event, tp.defined_class] end - if tp.defined_class.name == "BasicObject" && tp.method_id == :instance_eval + if tp.defined_class&.name == "BasicObject" && tp.method_id == :instance_eval if tp.event == :script_compiled @armed = true elsif tp.event == :c_return @armed = false end