OLD | NEW |
(Empty) | |
| 1 (function(global, exports) { |
| 2 'use strict'; |
| 3 |
| 4 const NONE = 0; |
| 5 const DONT_ENUM = 2; |
| 6 |
| 7 class CountQueuingStrategy { |
| 8 constructor(options) { |
| 9 %AddNamedProperty(this, 'highWaterMark', options.highWaterMark, NONE
); |
| 10 } |
| 11 |
| 12 size(chunk) { |
| 13 return 1; |
| 14 } |
| 15 } |
| 16 |
| 17 %AddNamedProperty(global, 'CountQueuingStrategy', CountQueuingStrategy, DONT
_ENUM); |
| 18 |
| 19 // Export a separate copy that doesn't need options objects and can't be int
erfered with. |
| 20 exports.BuiltInCountQueuingStrategy = class BuiltInCountQueuingStrategy { |
| 21 constructor(highWaterMark) { |
| 22 %AddNamedProperty(this, 'highWaterMark', highWaterMark, NONE); |
| 23 } |
| 24 |
| 25 size(chunk) { |
| 26 return 1; |
| 27 } |
| 28 }; |
| 29 }); |
OLD | NEW |