Closed Bug 957929 Opened 10 years ago Closed 10 years ago

WebIDL callbacks should pass undefined, not null as the this value if none is provided

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Because that's how ES functions normally work (modulo the non-strict mode coercion [[Call]] does).
Equivalent bugs on Chrome and Safari, except they weren't following the spec to start with: http://code.google.com/p/chromium/issues/detail?id=332663 and https://bugs.webkit.org/show_bug.cgi?id=126680
Whiteboard: [need review]
Assignee: bzbarsky → nsm.nikhil
Nikhil, you managed to conflate the patch in this bug and the one in bug 957926?
Assignee: nsm.nikhil → bzbarsky
Comment on attachment 8357618 [details] [diff] [review]
Pass undefined, not null, as the this value to callbacks if no other value is provided.

wrong bug and patch.
Attachment #8357618 - Attachment is obsolete: true
Attachment #8357618 - Flags: review?(jorendorff)
Attachment #8357608 - Flags: review?(peterv) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ec95f288a57
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla29
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: