Skip to content

cannot properly extend DOMException #59677

Description

@KhafraDev

Version

v24.6.0 and v24.7.0

Platform

n/a

Subsystem

web standards

What steps will reproduce the bug?

class MyDOMException extends DOMException {
  get reason () {
    return 'hello'
  }
}

console.log(new MyDOMException().reason)

node v22: 'hello'
node v24: undefined

How often does it reproduce? Is there a required condition?

always

What is the expected behavior? Why is that the expected behavior?

it should work

What do you see instead?

n/a

Additional information

cc @legendecas

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    web-standardsIssues and PRs related to web-platform APIs and standards compliance.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions