OLD | NEW |
(Empty) | |
| 1 (function(global, binding, v8) { |
| 2 'use strict'; |
| 3 |
| 4 const defineProperty = global.Object.defineProperty; |
| 5 |
| 6 class ByteLengthQueuingStrategy { |
| 7 constructor(options) { |
| 8 defineProperty(this, 'highWaterMark', { |
| 9 value: options.highWaterMark, |
| 10 enumerable: true, |
| 11 configurable: true, |
| 12 writable: true |
| 13 }); |
| 14 } |
| 15 size(chunk) { return chunk.byteLength; } |
| 16 } |
| 17 |
| 18 defineProperty(global, 'ByteLengthQueuingStrategy', { |
| 19 value: ByteLengthQueuingStrategy, |
| 20 enumerable: false, |
| 21 configurable: true, |
| 22 writable: true |
| 23 }); |
| 24 }); |
OLD | NEW |