summaryrefslogtreecommitdiff
path: root/runtime/js/01_web_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/01_web_util.js')
-rw-r--r--runtime/js/01_web_util.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/runtime/js/01_web_util.js b/runtime/js/01_web_util.js
deleted file mode 100644
index 9e0bedbd8..000000000
--- a/runtime/js/01_web_util.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-"use strict";
-
-((window) => {
- const { TypeError, Symbol } = window.__bootstrap.primordials;
- const illegalConstructorKey = Symbol("illegalConstructorKey");
-
- 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.webUtil = {
- illegalConstructorKey,
- requiredArguments,
- };
-})(this);