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

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

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+more tweaks Created 5 years, 1 month 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: third_party/WebKit/Source/modules/encoding/TextEncoder.idl
diff --git a/third_party/WebKit/Source/modules/encoding/TextEncoder.idl b/third_party/WebKit/Source/modules/encoding/TextEncoder.idl
index 8812f044c97f32c2e7c51dbb90a0b1b3368a3451..1d0f2934159ed524196f494bcdb9a0a407d271a4 100644
--- a/third_party/WebKit/Source/modules/encoding/TextEncoder.idl
+++ b/third_party/WebKit/Source/modules/encoding/TextEncoder.idl
@@ -36,5 +36,5 @@
MeasureAs=TextEncoderConstructor
] interface TextEncoder {
readonly attribute DOMString encoding;
- [MeasureAs=TextEncoderEncode] Uint8Array encode(optional USVString input = "");
+ [RaisesException, MeasureAs=TextEncoderEncode] Uint8Array encode(optional USVString input = "");
};

Powered by Google App Engine
This is Rietveld 408576698