The actual iterator implementation and JSAPI calls related to setting up the interface are ported directly from Gecko's Codegen.py, IterableIterator.h, and IterableIterator.webidl. The changes to support multiple interfaces in one file are required because the internal iterator interface the parser generates gets associated with the original interface's WebIDL file. It seemed like a good time to address #571 in that case. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12628 and fix #571. - [X] There are tests for these changes Source-Repo: https://github.com/servo/servo Source-Revision: 1370fa5e3b38f3000c0b1439177cc7b7b81d380e
13 lines
498 B
Plaintext
13 lines
498 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// This interface is entirely internal to Servo, and should not be accessible to
|
|
// web pages.
|
|
|
|
[Pref="dom.testbinding.enabled", Exposed=(Window,Worker), Constructor]
|
|
interface TestBindingPairIterable {
|
|
void add(DOMString key, unsigned long value);
|
|
iterable<DOMString, unsigned long>;
|
|
};
|