From a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 11 Aug 2021 12:27:05 +0200 Subject: Rename extensions/ directory to ext/ (#11643) --- extensions/fetch/01_fetch_util.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 extensions/fetch/01_fetch_util.js (limited to 'extensions/fetch/01_fetch_util.js') diff --git a/extensions/fetch/01_fetch_util.js b/extensions/fetch/01_fetch_util.js deleted file mode 100644 index 9cf19588b..000000000 --- a/extensions/fetch/01_fetch_util.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2018-2021 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); -- cgit v1.2.3