зеркало из https://github.com/mozilla/gecko-dev.git
83db11134f
This patch allows us to define methods or getters/setters for any of the current set of well-known symbols. Those are defined by adding the [symbol] attribute to a method: [symbol] Iterator iterator(); which causes the method to define a property with the well-known symbol which matches its method name (Symbol.iterator, in this case). Due to the implementation details of the XPIDL parser, this currently does not support defining a non-symbol function with the same name as a symbol function: [symbol] Iterator iterator(); [binaryname(OtherIterator)] Thing iterator(in nsIDRef aIID); throws for a duplicate method name, even though there is no actual conflict. Differential Revision: https://phabricator.services.mozilla.com/D3724 --HG-- extra : rebase_source : 1385e2da93113306730f7c087fe7385dbe668e91 extra : histedit_source : 3afd9fe38e7cbddc5576c2bd1673496dd623e489 |
||
---|---|---|
.. | ||
xpidl | ||
setup.py |