ruby-changes:33703
From: nobu <ko1@a...>
Date: Fri, 2 May 2014 12:20:29 +0900 (JST)
Subject: [ruby-changes:33703] nobu:r45784 (trunk): parse.y: hide anonymous id
nobu 2014-05-02 12:20:21 +0900 (Fri, 02 May 2014) New Revision: 45784 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45784 Log: parse.y: hide anonymous id * parse.y (rb_id_attrset): should not reveal anonymous ID as an instance variable. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 45783) +++ parse.y (revision 45784) @@ -8846,8 +8846,8 @@ rb_id_attrset(ID id) https://github.com/ruby/ruby/blob/trunk/parse.y#L8846 scope, (VALUE)data); } else { - rb_name_error(id, "cannot make unknown type ID %d:%"PRIxVALUE" attrset", - scope, (VALUE)id); + rb_name_error_str(Qnil, "cannot make unknown type anonymous ID %d:%"PRIxVALUE" attrset", + scope, (VALUE)id); } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/