move dependency check from runtime to mrbgem.rake

parent 58362fc3
MRuby::Gem::Specification.new('mruby-enumerator') do |spec| MRuby::Gem::Specification.new('mruby-enumerator') do |spec|
spec.license = 'MIT' spec.license = 'MIT'
spec.author = 'mruby developers' spec.author = 'mruby developers'
spec.add_dependency('mruby-fiber')
end end
...@@ -346,8 +346,6 @@ class Enumerator ...@@ -346,8 +346,6 @@ class Enumerator
end end
raise @stop_exc if @stop_exc raise @stop_exc if @stop_exc
raise NotImplementedError, "Enumerator require Fiber" unless Object.const_defined?(:Fiber)
curr = Fiber.current curr = Fiber.current
if !@fib || !@fib.alive? if !@fib || !@fib.alive?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment