mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove code for unsupported taint-mode
This commit is contained in:
+2
-3
@@ -408,7 +408,7 @@ init_copy(mrb_state *mrb, mrb_value dest, mrb_value obj)
|
||||
*
|
||||
* Produces a shallow copy of <i>obj</i>---the instance variables of
|
||||
* <i>obj</i> are copied, but not the objects they reference. Copies
|
||||
* the frozen and tainted state of <i>obj</i>. See also the discussion
|
||||
* the frozen state of <i>obj</i>. See also the discussion
|
||||
* under <code>Object#dup</code>.
|
||||
*
|
||||
* class Klass
|
||||
@@ -437,7 +437,6 @@ mrb_obj_clone(mrb_state *mrb, mrb_value self)
|
||||
}
|
||||
clone = mrb_obj_alloc(mrb, self.tt, mrb_obj_class(mrb, self));
|
||||
clone->c = mrb_singleton_class_clone(mrb, self);
|
||||
//RBASIC(clone)->flags = (RBASIC(obj)->flags | FL_TEST(clone, FL_TAINT) | FL_TEST(clone, FL_UNTRUSTED)) & ~(FL_FREEZE|FL_FINALIZE);
|
||||
init_copy(mrb, mrb_obj_value(clone), self);
|
||||
//1-9-2 no bug mrb_funcall(mrb, clone, "initialize_clone", 1, self);
|
||||
//RBASIC(clone)->flags |= RBASIC(obj)->flags & FL_FREEZE;
|
||||
@@ -452,7 +451,7 @@ mrb_obj_clone(mrb_state *mrb, mrb_value self)
|
||||
*
|
||||
* Produces a shallow copy of <i>obj</i>---the instance variables of
|
||||
* <i>obj</i> are copied, but not the objects they reference.
|
||||
* <code>dup</code> copies the tainted state of <i>obj</i>. See also
|
||||
* <code>dup</code> copies the frozen state of <i>obj</i>. See also
|
||||
* the discussion under <code>Object#clone</code>. In general,
|
||||
* <code>clone</code> and <code>dup</code> may have different semantics
|
||||
* in descendant classes. While <code>clone</code> is used to duplicate
|
||||
|
||||
Reference in New Issue
Block a user