Closed Bug 747815 Opened 13 years ago Closed 13 years ago

DOM bindings should enforce constness of string in params

Categories

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

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Right now, we don't do that. Patch coming up.
Comment on attachment 617369 [details] [diff] [review] Use const strings for arguments in DOM bindings. Review of attachment 617369 [details] [diff] [review]: ----------------------------------------------------------------- Not sure what the advantage is (we usually don't do this).
Attachment #617369 - Flags: review?(peterv) → review+
Makes it harder to write DOM method decls that look like they have an out param when they actually have an in param. With this patch, they just won't compile.
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla15
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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: