summaryrefslogtreecommitdiff
path: root/ext/fetch/01_fetch_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/01_fetch_util.js')
-rw-r--r--ext/fetch/01_fetch_util.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/fetch/01_fetch_util.js b/ext/fetch/01_fetch_util.js
deleted file mode 100644
index 3ed554ecb..000000000
--- a/ext/fetch/01_fetch_util.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-"use strict";
-
-((window) => {
- const { TypeError } = window.__bootstrap.primordials;
- function requiredArguments(
- name,
- length,
- required,
- ) {
- if (length < required) {
- const errMsg = `${name} requires at least ${required} argument${
- required === 1 ? "" : "s"
- }, but only ${length} present`;
- throw new TypeError(errMsg);
- }
- }
-
- window.__bootstrap.fetchUtil = {
- requiredArguments,
- };
-})(this);