diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:25:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:25:29 +0000 |
commit | 671b498070c0fa33fa6afaf4f4672441ae61661a (patch) | |
tree | 07e887952acaa6df812940779b9a1ad907fc727f /object.c | |
parent | 12cbb588193ac5148b6421fc8953c817acb0ae9f (diff) | |
download | ruby-671b498070c0fa33fa6afaf4f4672441ae61661a.tar.gz |
Commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -712,7 +712,9 @@ rb_obj_taint(VALUE obj) { rb_secure(4); if (!OBJ_TAINTED(obj)) { - rb_check_frozen(obj); + if (OBJ_FROZEN(obj)) { + rb_error_frozen("object"); + } OBJ_TAINT(obj); } return obj; @@ -731,7 +733,9 @@ rb_obj_untaint(VALUE obj) { rb_secure(3); if (OBJ_TAINTED(obj)) { - rb_check_frozen(obj); + if (OBJ_FROZEN(obj)) { + rb_error_frozen("object"); + } FL_UNSET(obj, FL_TAINT); } return obj; @@ -764,7 +768,9 @@ rb_obj_untrust(VALUE obj) { rb_secure(4); if (!OBJ_UNTRUSTED(obj)) { - rb_check_frozen(obj); + if (OBJ_FROZEN(obj)) { + rb_error_frozen("object"); + } OBJ_UNTRUST(obj); } return obj; @@ -783,7 +789,9 @@ rb_obj_trust(VALUE obj) { rb_secure(3); if (OBJ_UNTRUSTED(obj)) { - rb_check_frozen(obj); + if (OBJ_FROZEN(obj)) { + rb_error_frozen("object"); + } FL_UNSET(obj, FL_UNTRUSTED); } return obj; |