Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(833)

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js

Issue 2561443004: Implementation of ReadableStream pipeTo and pipeThrough (Closed)
Patch Set: Rebase and move includes to .gn Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+ });
+});
« no previous file with comments | « third_party/WebKit/Source/core/streams/ReadableStream.js ('k') | third_party/WebKit/Source/core/streams/WritableStream.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698