diff --git a/vm/builtin/object.cpp b/vm/builtin/object.cpp index 0ce39bccda..cfe367fcc3 100644 --- a/vm/builtin/object.cpp +++ b/vm/builtin/object.cpp @@ -215,6 +215,8 @@ namespace rubinius { return Qnil; } + if(type_id() == Object::type) return get_table_ivar(state, sym); + // Handle packed objects in a unique way. if(PackedObject* po = try_as(this)) { return po->get_packed_ivar(state, sym); @@ -496,6 +498,8 @@ namespace rubinius { return val; } + if(type_id() == Object::type) return set_table_ivar(state, sym, val); + // Handle packed objects in a unique way. if(PackedObject* po = try_as(this)) { return po->set_packed_ivar(state, sym, val);