Permalink
Browse files

Should raise RuntimeError when object frozen

  • Loading branch information...
ksss committed Jan 22, 2017
1 parent bd50273 commit b49bd70f5967d32a46bce624b87595620664403c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/array.c
View
@@ -796,6 +796,7 @@ mrb_ary_aset(mrb_state *mrb, mrb_value self)
mrb_value v1, v2, v3;
mrb_int i, len;
mrb_ary_modify(mrb, mrb_ary_ptr(self));
if (mrb_get_args(mrb, "oo|o", &v1, &v2, &v3) == 2) {
switch (mrb_type(v1)) {
/* a[n..m] = v */

0 comments on commit b49bd70

Please sign in to comment.