| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Include pipeTo() and pipeThrough() on the global ReadableStream object when |
| 6 // the experimental flag is enabled. |
| 7 |
| 8 (function(global, binding, v8) { |
| 9 'use strict'; |
| 10 |
| 11 const defineProperty = global.Object.defineProperty; |
| 12 defineProperty(global.ReadableStream.prototype, 'pipeThrough', { |
| 13 value: binding.ReadableStream_prototype_pipeThrough, |
| 14 enumerable: false, |
| 15 configurable: true, |
| 16 writable: true |
| 17 }); |
| 18 |
| 19 defineProperty(global.ReadableStream.prototype, 'pipeTo', { |
| 20 value: binding.ReadableStream_prototype_pipeTo, |
| 21 enumerable: false, |
| 22 configurable: true, |
| 23 writable: true |
| 24 }); |
| 25 }); |
| OLD | NEW |