mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-30 19:41:56 +00:00
webidl: add support for constructors
This commit is contained in:
File diff suppressed because one or more lines are too long
9
crates/webidl/tests/fixtures/Event.webidl
vendored
9
crates/webidl/tests/fixtures/Event.webidl
vendored
@@ -13,6 +13,9 @@
|
||||
// TODO: don't include this here, use Performance.webidl instead
|
||||
typedef double DOMHighResTimeStamp;
|
||||
|
||||
// TODO: remove this when dicts are resolved
|
||||
typedef boolean EventInit;
|
||||
|
||||
[Constructor(DOMString type, optional EventInit eventInitDict),
|
||||
Exposed=(Window,Worker,System), ProbablyShortLivingWrapper]
|
||||
interface Event {
|
||||
@@ -60,3 +63,9 @@ interface Event {
|
||||
optional boolean cancelable = false);
|
||||
attribute boolean cancelBubble;
|
||||
};
|
||||
|
||||
dictionary EventInit {
|
||||
boolean bubbles = false;
|
||||
boolean cancelable = false;
|
||||
boolean composed = false;
|
||||
};
|
||||
|
Reference in New Issue
Block a user