Actions
Bug #12089
closedRaise not stable NameError
Description
Is this intentional?
irb(main):001:0> Object.const_get('A')
NameError: uninitialized constant Object::A
irb(main):002:0> :A
=> :A
irb(main):003:0> Object.const_get('A')
NameError: uninitialized constant A
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Status changed from Open to Closed
Applied in changeset r53875.
object.c: fix error message
- object.c (rb_mod_const_get): make error message at uninterned
string consistent with symbols. [ruby-dev:49498] [Bug #12089]
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Backport set to 2.3: REQUIRED
Updated by usa (Usaku NAKAMURA) almost 9 years ago
- Related to Bug #12121: 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる added
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Related to deleted (Bug #12121: 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる)
Updated by naruse (Yui NARUSE) over 8 years ago
- Backport changed from 2.3: REQUIRED to 2.3: DONE
ruby_2_3 r54408 merged revision(s) 53875.
Actions
Like0
Like0Like0Like0Like0Like0