Index: modules/encoding/TextDecoder.idl |
diff --git a/core/dom/PromiseResolver.idl b/modules/encoding/TextDecoder.idl |
similarity index 80% |
copy from core/dom/PromiseResolver.idl |
copy to modules/encoding/TextDecoder.idl |
index f2c80b491a1189e5dc8cfe0d0e341791e65770c4..576d29807a0bc281223f178570a73f271b77c44b 100644 |
--- a/core/dom/PromiseResolver.idl |
+++ b/modules/encoding/TextDecoder.idl |
@@ -29,9 +29,11 @@ |
*/ |
[ |
- EnabledAtRuntime=promise |
-] interface PromiseResolver { |
- [Custom] void fulfill(optional any value); |
- [Custom] void resolve(optional any value); |
- [Custom] void reject(optional any value); |
+ EnabledAtRuntime=EncodingAPI, |
+ GlobalContext=Window&WorkerGlobalScope, |
+ Constructor([Default=NullString] optional DOMString label, optional Dictionary options), |
+ ConstructorRaisesException |
+] interface TextDecoder { |
+ readonly attribute DOMString encoding; |
+ [RaisesException] DOMString decode(optional ArrayBufferView input, optional Dictionary options); |
}; |