Files
mruby-mruby/mrbgems/mruby-catch/mrblib/catch.rb
T
Yukihiro "Matz" Matsumoto c7809ca025 Refactor mruby-catch; ref #5328
- Move `#catch` definition to `mruby-catch.c` to avoid tweaking
- Remove `#__preserve_catch_method`
- Implement whole `#throw` method in C
2021-02-10 20:09:00 +09:00

9 lines
180 B
Ruby

class UncaughtThrowError < ArgumentError
attr_reader :_tag, :_val
def initialize(tag, val)
@_tag = tag
@_val = val
super("uncaught throw #{tag.inspect}")
end
end