Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1383)

Unified Diff: Source/modules/encoding/TextEncoder.idl

Issue 312683005: IDL: Support optional argument default value syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address nits Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/encoding/TextEncoder.idl
diff --git a/Source/modules/encoding/TextEncoder.idl b/Source/modules/encoding/TextEncoder.idl
index 243d2f8a03d26e14578f8fa626f86ed444950f74..e621bc97f831094a94a46c40792b859fc4e10c87 100644
--- a/Source/modules/encoding/TextEncoder.idl
+++ b/Source/modules/encoding/TextEncoder.idl
@@ -31,11 +31,11 @@
[
RuntimeEnabled=EncodingAPI,
Exposed=Window&Worker,
- Constructor([Default=NullString] optional DOMString utfLabel),
+ Constructor(optional DOMString utfLabel = null),
RaisesException=Constructor,
GarbageCollected,
MeasureAs=TextEncoderConstructor
] interface TextEncoder {
readonly attribute DOMString encoding;
- [MeasureAs=TextEncoderEncode] Uint8Array encode([Default=NullString] optional DOMString input, optional Dictionary options);
+ [MeasureAs=TextEncoderEncode] Uint8Array encode(optional DOMString input = null, optional Dictionary options);
};
« no previous file with comments | « Source/modules/encoding/TextDecoder.idl ('k') | Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698