mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c7809ca025
- Move `#catch` definition to `mruby-catch.c` to avoid tweaking - Remove `#__preserve_catch_method` - Implement whole `#throw` method in C
9 lines
180 B
Ruby
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
|