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', |
+ }; |
+}); |