From ab0ed404a5b0fa4783b2010232d53f590ae5067d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 Oct 2015 06:24:12 +0000 Subject: NameError#receiver of uninitialized constant * error.c (name_err_mesg_to_str): quote the name if unprintable. * object.c (check_setter_id): use rb_check_id to convert names. * variable.c (uninitialized_constant): use NameError::message to keep the receiver of uninitialized constant. [Feature #10881] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- method.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'method.h') diff --git a/method.h b/method.h index 4850caeebd..a314a75634 100644 --- a/method.h +++ b/method.h @@ -27,7 +27,9 @@ typedef enum { METHOD_VISI_UNDEF = 0x00, METHOD_VISI_PUBLIC = 0x01, METHOD_VISI_PRIVATE = 0x02, - METHOD_VISI_PROTECTED = 0x03 + METHOD_VISI_PROTECTED = 0x03, + + METHOD_VISI_MASK = 0x03 } rb_method_visibility_t; typedef struct rb_scope_visi_struct { -- cgit v1.2.3