Closed Bug 1451220 Opened 8 years ago Closed 8 years ago

Error events seem to have the wrong Prototype

Categories

(Firefox :: Untriaged, defect)

59 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: martin.below, Unassigned)

Details

Attachments

(1 file)

Attached file bug-errorevent.html
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 Build ID: 20180326160923 Steps to reproduce: I did an instanceof test on an ErrorEvent emitted by XMLHttpRequest.onerror See attached file on how to reproduce. Actual results: "error instanceof ErrorEvent" yields false. error.__proto__ gives me "ProgressEvent" Expected results: I expect "error instanceof ErrorEvent" to be true, as well as error.__proto__ to be "ErrorEvent".
seems to be correct according to the spec
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: