From ff99fd4de1037737241600499ddf0c04678ce2a6 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 May 2014 03:20:21 +0000 Subject: parse.y: hide anonymous id * parse.y (rb_id_attrset): should not reveal anonymous ID as an instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 40bbbb1564..df90ab5e3c 100644 --- a/parse.y +++ b/parse.y @@ -8846,8 +8846,8 @@ rb_id_attrset(ID id) 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); } } } -- cgit v1.2.3