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

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStream.js

Issue 2933853003: Streams: Fix exception message for NaN HWM (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/core/streams/ReadableStream.js
diff --git a/third_party/WebKit/Source/core/streams/ReadableStream.js b/third_party/WebKit/Source/core/streams/ReadableStream.js
index bc70cf9e65c11436bb6737489805495cfc385878..d440db2f997f9b62533031ce026e58a4a96011a5 100644
--- a/third_party/WebKit/Source/core/streams/ReadableStream.js
+++ b/third_party/WebKit/Source/core/streams/ReadableStream.js
@@ -1040,7 +1040,7 @@
highWaterMark = Number(highWaterMark);
if (Number_isNaN(highWaterMark)) {
- throw new RangeError(streamErrors.errInvalidHWM);
+ throw new RangeError(streamErrors.invalidHWM);
}
if (highWaterMark < 0) {
throw new RangeError(streamErrors.invalidHWM);

Powered by Google App Engine
This is Rietveld 408576698