mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Modifying frozen objects will raise FrozenError.
`FrozenError` is a subclass of `RuntimeError` which used to be raised. [Ruby2.5]
This commit is contained in:
@@ -1164,6 +1164,7 @@ MRB_API void mrb_print_error(mrb_state *mrb);
|
||||
#define E_SYNTAX_ERROR (mrb_exc_get(mrb, "SyntaxError"))
|
||||
#define E_LOCALJUMP_ERROR (mrb_exc_get(mrb, "LocalJumpError"))
|
||||
#define E_REGEXP_ERROR (mrb_exc_get(mrb, "RegexpError"))
|
||||
#define E_FROZEN_ERROR (mrb_exc_get(mrb, "FrozenError"))
|
||||
|
||||
#define E_NOTIMP_ERROR (mrb_exc_get(mrb, "NotImplementedError"))
|
||||
#ifndef MRB_WITHOUT_FLOAT
|
||||
|
||||
Reference in New Issue
Block a user