| Index: third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js
|
| diff --git a/third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js b/third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..870c18b70c02a98225b59faf4a588fd56ca00e7c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js
|
| @@ -0,0 +1,25 @@
|
| +// 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.
|
| +
|
| +// Include pipeTo() and pipeThrough() on the global ReadableStream object when
|
| +// the experimental flag is enabled.
|
| +
|
| +(function(global, binding, v8) {
|
| + 'use strict';
|
| +
|
| + const defineProperty = global.Object.defineProperty;
|
| + defineProperty(global.ReadableStream.prototype, 'pipeThrough', {
|
| + value: binding.ReadableStream_prototype_pipeThrough,
|
| + enumerable: false,
|
| + configurable: true,
|
| + writable: true
|
| + });
|
| +
|
| + defineProperty(global.ReadableStream.prototype, 'pipeTo', {
|
| + value: binding.ReadableStream_prototype_pipeTo,
|
| + enumerable: false,
|
| + configurable: true,
|
| + writable: true
|
| + });
|
| +});
|
|
|