Project

General

Profile

Actions

Bug #21043

closed

Prism defined? has slight deviations from parse.y

Added by kddnewton (Kevin Newton) about 1 month ago. Updated 8 days ago.

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

Description

defined?((alias foo bar))
defined?((undef foo))
def foo(*) = defined?(foo(*))
def foo(**) = defined?(foo(**))
def foo(...) = defined?(foo(...))
def foo(&) = defined?(foo(&))

and a couple others have slightly different behavior.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #21118: Calling defined?(it) segfaultsClosedActions
Actions #1

Updated by kddnewton (Kevin Newton) about 1 month ago

  • Status changed from Open to Closed

Applied in changeset git|d492cfdaadf9e936217e80e0899809313ff4b3d5.


Align defined? implementations between parsers (#12584)

Fixes [Bug #21043]

Actions #2

Updated by byroot (Jean Boussier) 16 days ago

  • Related to Bug #21118: Calling defined?(it) segfaults added
Actions #3

Updated by byroot (Jean Boussier) 16 days ago

  • Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED

Updated by k0kubun (Takashi Kokubun) 8 days ago

Backporting d492cfdaadf9e936217e80e0899809313ff4b3d5 to ruby_3_4 causes a conflict.

Updated by k0kubun (Takashi Kokubun) 8 days ago

  • Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0