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

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

Issue 356703002: Use IDL argument default values in modules/encoding/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/modules/encoding/TextEncoder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encoding/TextEncoder.idl
diff --git a/Source/modules/encoding/TextEncoder.idl b/Source/modules/encoding/TextEncoder.idl
index dc86fef21bf7e7c28b73df77962e9c24168adc42..d5e9c2f98bdd6f0e4e7bd38b7935317b604f22f9 100644
--- a/Source/modules/encoding/TextEncoder.idl
+++ b/Source/modules/encoding/TextEncoder.idl
@@ -31,11 +31,11 @@
[
RuntimeEnabled=EncodingAPI,
Exposed=Window&Worker,
- Constructor(optional DOMString utfLabel = null),
+ Constructor(optional DOMString utfLabel = "utf-8"),
RaisesException=Constructor,
GarbageCollected,
MeasureAs=TextEncoderConstructor
] interface TextEncoder {
readonly attribute DOMString encoding;
- [MeasureAs=TextEncoderEncode] Uint8Array encode(optional ScalarValueString input = null, optional Dictionary options);
+ [MeasureAs=TextEncoderEncode] Uint8Array encode(optional ScalarValueString input = "", optional Dictionary options);
};
« no previous file with comments | « Source/modules/encoding/TextEncoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698