diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 061b020930..b57cccd0fa 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -559,10 +559,6 @@ static inline VALUE vm_setivar(VALUE obj, ID id, VALUE val, IC ic, rb_call_info_t *ci, int is_attr) { #if USE_IC_FOR_IVAR - if (!OBJ_UNTRUSTED(obj) && rb_safe_level() >= 4) { - rb_raise(rb_eSecurityError, "Insecure: can't modify instance variable"); - } - rb_check_frozen(obj); if (RB_TYPE_P(obj, T_OBJECT)) { |