From 955464ca3cf408a14ae98b1e93afe31023219af9 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Fri, 12 Feb 2021 19:09:18 +0900 Subject: Add `UncaughtThrowError#{tag,value}` for Ruby compatibility --- mrbgems/mruby-catch/mrblib/catch.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mrbgems/mruby-catch/mrblib') diff --git a/mrbgems/mruby-catch/mrblib/catch.rb b/mrbgems/mruby-catch/mrblib/catch.rb index 8e5f59023..9a60a67a3 100644 --- a/mrbgems/mruby-catch/mrblib/catch.rb +++ b/mrbgems/mruby-catch/mrblib/catch.rb @@ -1,8 +1,8 @@ class UncaughtThrowError < ArgumentError - attr_reader :_tag, :_val - def initialize(tag, val) - @_tag = tag - @_val = val + attr_reader :tag, :value + def initialize(tag, value) + @tag = tag + @value = value super("uncaught throw #{tag.inspect}") end end -- cgit v1.2.3