summaryrefslogtreecommitdiff
path: root/deps/undici/src/lib/fetch/webidl.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/undici/src/lib/fetch/webidl.js')
-rw-r--r--deps/undici/src/lib/fetch/webidl.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/undici/src/lib/fetch/webidl.js b/deps/undici/src/lib/fetch/webidl.js
index e55de13950..38a05e6575 100644
--- a/deps/undici/src/lib/fetch/webidl.js
+++ b/deps/undici/src/lib/fetch/webidl.js
@@ -51,6 +51,13 @@ webidl.argumentLengthCheck = function ({ length }, min, ctx) {
}
}
+webidl.illegalConstructor = function () {
+ throw webidl.errors.exception({
+ header: 'TypeError',
+ message: 'Illegal constructor'
+ })
+}
+
// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
webidl.util.Type = function (V) {
switch (typeof V) {