diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-23 18:00:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-23 18:08:38 +0900 |
| commit | b30eba6a13fef8994a7556654b5d4e3e54622f65 (patch) | |
| tree | fb1ad463a199dc2f445273ec2832d6b8320d40fd /mrblib | |
| parent | d0717efda64efba9b7b7d6602fddf797a05af196 (diff) | |
| download | mruby-b30eba6a13fef8994a7556654b5d4e3e54622f65.tar.gz mruby-b30eba6a13fef8994a7556654b5d4e3e54622f65.zip | |
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`.
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/10error.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
