diff options
author | Node.js GitHub Bot <github-bot@iojs.org> | 2023-05-16 17:36:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 16:36:34 +0000 |
commit | 7a57d1fb942467a4aa255ee11e09a4ca0003ce85 (patch) | |
tree | 7b0a557f6dc7567020f24e42efd274da20dd9ee3 /deps/undici/src/lib/fetch/webidl.js | |
parent | d2c4518ce65e48c1f32f435c1f06519723873f0c (diff) | |
download | node-new-7a57d1fb942467a4aa255ee11e09a4ca0003ce85.tar.gz |
deps: update undici to 5.22.1
PR-URL: https://github.com/nodejs/node/pull/47994
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to 'deps/undici/src/lib/fetch/webidl.js')
-rw-r--r-- | deps/undici/src/lib/fetch/webidl.js | 7 |
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) { |