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

Metadata

Metadata

Assignees

No one assigned

    Labels

    web-standardsIssues and PRs related to Web APIs

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions