Skip to content

Use DOMException instead of DOMError #374

Closed
@floating-cat

Description

@floating-cat

The current method signature of FileReader.error is

def error: DOMError = js.native

But from MDN page:

A DOMError containing the relevant error. In Chrome 48+/Firefox 58+ this property returns a DOMException because DOMError has been removed from the DOM standard.

The DOMError MDN page also says this DOMError was deprecated.

Also the DOMError and the DOMException APIs in scala-js-dom is not complete. The MDN DOMException class has three methods, but scala-js-dom API only has two, the deprecated message for DOMException.code is not incorrect now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions