From b30eba6a13fef8994a7556654b5d4e3e54622f65 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 23 Jun 2017 18:00:32 +0900 Subject: Make `LocalJumpError` a subclass of `ScriptError`. It's incompatible with CRuby, but it is required for mruby because it cannot detect `break` outside of loops in the parsing time, but in the code generation time where it cannot raise `SyntaxError`. --- mrblib/10error.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mrblib') diff --git a/mrblib/10error.rb b/mrblib/10error.rb index 2674af7a2..22a8d1ad7 100644 --- a/mrblib/10error.rb +++ b/mrblib/10error.rb @@ -2,8 +2,8 @@ class ArgumentError < StandardError end -# ISO 15.2.25 -class LocalJumpError < StandardError +# ISO 15.2.25 says "LocalJumpError < StandardError" +class LocalJumpError < ScriptError end # ISO 15.2.26 -- cgit v1.2.3