Index: Source/core/streams/CountQueuingStrategy.js |
diff --git a/Source/core/streams/CountQueuingStrategy.js b/Source/core/streams/CountQueuingStrategy.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ebfdbff317c7b668f0f0971924ffe2ecbaff4aa9 |
--- /dev/null |
+++ b/Source/core/streams/CountQueuingStrategy.js |
@@ -0,0 +1,18 @@ |
+(function(global) { |
+ 'use strict'; |
+ |
+ const NONE = 0; |
+ const DONT_ENUM = 2; |
+ |
+ class CountQueuingStrategy { |
+ constructor(options) { |
+ %AddNamedProperty(this, 'highWaterMark', options.highWaterMark, NONE); |
+ } |
+ |
+ size(chunk) { |
+ return 1; |
+ } |
+ } |
+ |
+ %AddNamedProperty(global, 'CountQueuingStrategy', CountQueuingStrategy, DONT_ENUM); |
+}); |