servo/components/script/dom/webidls/TestBindingMaplike.webidl
Samson e0a6281e73
Impl Setlike and Maplike (#30237)
* MallocSizeOf for Index{Set, Map}

* like as iterable in WebIDL

* Codegen magic for like interfaces

* TestBinding for like

* Test for Setlike and Maplike test bindings

* Some fixes

* Switch to any.js

* nit

* Keep order
2023-09-06 13:08:45 +00:00

20 lines
663 B
Text

/* 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 https://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)]
interface TestBindingMaplike {
[Throws]
constructor();
maplike<DOMString, long>;
undefined setInternal(DOMString aKey, long aValue);
undefined clearInternal();
boolean deleteInternal(DOMString aKey);
boolean hasInternal(DOMString aKey);
[Throws]
long getInternal(DOMString aKey);
};