Closed
Bug 806184
Opened 12 years ago
Closed 12 years ago
Can't use 'delete' method in WebIDL
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: janv, Assigned: vendo)
References
Details
Attachments
(4 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
interface IDBObjectStoreSync {
boolean delete (any key);
}
The code generator produces a method for this in IDBObjectStoreSyncBinding.cpp which doesn't compile since it conflicts with the C++ reserved word "delete"
Attaching a quick fix ...
Assignee | ||
Comment 1•12 years ago
|
||
Same problem with c++ reserved word "continue".
interface IDBCursorSync {
boolean continue(optional any key);
boolean delete();
};
New version of quick fix added.
Comment 2•12 years ago
|
||
I would prefer a method that takes the WebIDL identifier name and produces the name used in the binding code. Then we can just call this method from the various places it's needed and update it as it becomes necessary....
Jan, Vendelin, are you actively working on this?
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #2)
> I would prefer a method that takes the WebIDL identifier name and produces
> the name used in the binding code. Then we can just call this method from
> the various places it's needed and update it as it becomes necessary....
>
> Jan, Vendelin, are you actively working on this?
Yes, he needs this for bug 798875
Assignee: nobody → swenruzicka
Assignee | ||
Comment 4•12 years ago
|
||
I have created new attachment with fix and simple test. Any suggestions are welcome.
Reporter | ||
Updated•12 years ago
|
Attachment #676388 -
Flags: review?(bzbarsky)
Comment 5•12 years ago
|
||
Comment on attachment 676388 [details] [diff] [review]
fix for c++ keywords v.3
This doesn't seem to be a patch against tip, but against some intermediate state. I'd really like to see a diff against tip.
Also, please drop the 'CG' from the class name, since this is not in fact a subclass of CGThing.
And add the missing newline to the end of TestCodeGen.webidl, please.
r=me with that.
Attachment #676388 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 6•12 years ago
|
||
New version of patch against tip added in attachment.
Attachment #676990 -
Flags: review?(bzbarsky)
Comment 7•12 years ago
|
||
Comment on attachment 676990 [details] [diff] [review]
bug-806184-patch
r=me
Attachment #676990 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Comment 8•12 years ago
|
||
Reporter | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•