Skip to content

Commit 2ad0b7c

Browse files
committed
Fix UncaughtThrowError
UncaughtThrowError should subclass ArgumentError instead of StandardError. See https://github.com/ruby/ruby/blob/v2_2_0/NEWS#L72.
1 parent 2d81952 commit 2ad0b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/common/exception.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def to_s
213213
end
214214
end
215215

216-
class UncaughtThrowError < StandardError
216+
class UncaughtThrowError < ArgumentError
217217
end
218218

219219
class IndexError < StandardError

0 commit comments

Comments
 (0)