aboutsummaryrefslogtreecommitdiff
path: root/src/js/builtins/CountQueuingStrategy.ts
blob: a72dca1ca509819745a77b672123e05687d78a79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright (C) 2015 Canon Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

$getter;
export function highWaterMark(this: any) {
  const highWaterMark = $getByIdDirectPrivate(this, "highWaterMark");

  if (highWaterMark === undefined)
    throw new TypeError("CountQueuingStrategy.highWaterMark getter called on incompatible |this| value.");

  return highWaterMark;
}

export function size() {
  return 1;
}

export function initializeCountQueuingStrategy(this: any, parameters: any) {
  $putByIdDirectPrivate(this, "highWaterMark", $extractHighWaterMarkFromQueuingStrategyInit(parameters));
}
1Reload node:fs in developmentGravatar Jarred Sumner 1-0/+9 2022-10-21chore: remove outdated `var` usages (#1364)Gravatar Carter Snook 1-34/+34 2022-10-21Fix "/" in exampleGravatar Jarred Sumner 1-3/+10 2022-10-21Fix infinite loopGravatar Jarred Sumner 1-3/+13 2022-10-21micro-optimizeGravatar Jarred Sumner 1-7/+14 2022-10-20Update install script to use secure flagsGravatar Ashcon Partovi 2-5/+5 2022-10-20Add installation method for HomebrewGravatar Ashcon Partovi 1-0/+7 2022-10-20Fix crash in `highWaterMark`Gravatar Jarred Sumner 1-143/+144 2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 7-4/+37 2022-10-19Fix calling `ws.publish` inside `close` when other clients are connectedGravatar Jarred Sumner 3-28/+111 2022-10-19Cache dir loader: Prefer `$BUN_INSTALL` and `$XDG_CACHE_HOME` to `$HOME`. (#1...Gravatar Lucas Garron 1-5/+5 2022-10-19Improve issue templates (#1353)Gravatar Ashcon Partovi 8-89/+136