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

Side by Side Diff: Source/core/streams/ByteLengthQueuingStrategy.js

Issue 1167343002: Add methods for creating V8 extras-based ReadableStreams from C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove C++ queuing strategies Created 5 years, 6 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
OLDNEW
(Empty)
1 (function(global) {
2 'use strict';
3
4 const NONE = 0;
5 const DONT_ENUM = 2;
6
7 class ByteLengthQueuingStrategy {
8 constructor(options) {
9 %AddNamedProperty(this, 'highWaterMark', options.highWaterMark, NONE );
10 }
11
12 size(chunk) {
13 return chunk.byteLength;
14 }
15 }
16
17 %AddNamedProperty(global, 'ByteLengthQueuingStrategy', ByteLengthQueuingStra tegy, DONT_ENUM);
18 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698