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

Side by Side Diff: third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js

Issue 2792513002: Ship ReadableStream pipeTo() (Closed)
Patch Set: Add a comment explaining the purpose of the asserts in PipeTo Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/streams/ReadableStream.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/streams/ReadableStream.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698