summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-02 03:20:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-02 03:20:21 +0000
commitff99fd4de1037737241600499ddf0c04678ce2a6 (patch)
treebf8e52efc04db3b1905e6d6cc53e6ab9a7bd65b1 /parse.y
parentd1c0375526e765a3f86450173ee287cb1a233441 (diff)
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
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}