Closed
Bug 792137
Opened 13 years ago
Closed 13 years ago
Update [TreatNonCallableAsNull] to spec
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
|
19.62 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
It's specified on the callback, not the attribute.
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #662266 -
Flags: review?(peterv)
| Assignee | ||
Updated•13 years ago
|
Whiteboard: [need review]
| Assignee | ||
Updated•13 years ago
|
Attachment #662266 -
Flags: review?(khuey)
Comment 2•13 years ago
|
||
Comment on attachment 662266 [details] [diff] [review]
[TreatNonCallableAsNull] lives on the callback type now.
Review of attachment 662266 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/bindings/Codegen.py
@@ +2335,5 @@
> + template = (
> + "if (%s) {\n"
> + " ${declName} = &${val}.toObject();\n"
> + "} else {\n"
> + " ${declName} = NULL;\n"
nullptr
@@ +2345,5 @@
> + "} else {\n"
> + "%s"
> + "}" % CGIndenter(onFailureNotCallable(failureCode)).define(),
> + isDefinitelyObject, type,
> + "${declName} = NULL",
nullptr
@@ +3785,5 @@
>
> if type.isCallback():
> + if type.nullable():
> + return CGGeneric("JSObject*")
> + return CGGeneric("NonNull<JSObject>")
Shouldn't this do the same thing as object (ie JSObject&)?
Attachment #662266 -
Flags: review?(peterv) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 662266 [details] [diff] [review]
[TreatNonCallableAsNull] lives on the callback type now.
> Shouldn't this do the same thing as object (ie JSObject&)?
Ah, this is the accessor signature. Yes, it should. Good catch.
Attachment #662266 -
Flags: review?(khuey)
| Assignee | ||
Comment 4•13 years ago
|
||
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla19
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•