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

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

Issue 2498983002: ReadableStream and WritableStream share strings (Closed)
Patch Set: Rebase to fix patch errors and fix typo Created 4 years 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 | « build_overrides/v8.gni ('k') | third_party/WebKit/Source/core/streams/ReadableStream.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/streams/CommonStrings.js
diff --git a/third_party/WebKit/Source/core/streams/CommonStrings.js b/third_party/WebKit/Source/core/streams/CommonStrings.js
new file mode 100644
index 0000000000000000000000000000000000000000..01fc130d1f3849b984c4c8be5aebcfb749aaab94
--- /dev/null
+++ b/third_party/WebKit/Source/core/streams/CommonStrings.js
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// User-visible strings shared between ReadableStream and WritableStream.
+
+(function(global, binding, v8) {
+ 'use strict';
+
+ binding.streamErrors = {
+ illegalInvocation: 'Illegal invocation',
+ illegalConstructor: 'Illegal constructor',
+ invalidType: 'Invalid type is specified',
+ invalidSize: 'The return value of a queuing strategy\'s size function must be a finite, non-NaN, non-negative number',
+ sizeNotAFunction: 'A queuing strategy\'s size property must be a function',
+ invalidHWM: 'A queueing strategy\'s highWaterMark property must be a nonnegative, non-NaN number',
+ };
+});
« no previous file with comments | « build_overrides/v8.gni ('k') | third_party/WebKit/Source/core/streams/ReadableStream.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698