Project

General

Profile

Actions

Bug #21974

closed

Cannot inspect RubyVM::AST for CDECL

Bug #21974: Cannot inspect RubyVM::AST for CDECL

Added by kddnewton (Kevin Newton) 8 months ago. Updated 1 day ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:125161]

Description

./ruby -e 'pp RubyVM::AbstractSyntaxTree.parse("::Foo = 1")'

and

./ruby -e 'p RubyVM::AbstractSyntaxTree.parse("::Foo = 1").children[2].children'

both crash

Updated by afurm (Andrii Furmanets) 8 months ago Actions #2

  • Status changed from Open to Closed

Applied in changeset git|4009b713a64f469e593ffbc5bb4b37eff43f3be3.


[Bug #21974] Fix RubyVM::AST inspection for ::Foo = 1 (#16642)

  • Fix AST CDECL children for top-level constants

  • Simplify cdecl AST regression test

Updated by k0kubun (Takashi Kokubun) 1 day ago Actions #3 [ruby-core:127570]

  • Backport changed from 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN to 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: DONE
Actions

Also available in: PDF Atom