From 868522aa377a4519adb0b9f402586ab7a41b86ba Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 21 May 2024 22:56:20 +0200 Subject: Adding debian version 5.28.2+dfsg1+~cs23.11.12.3-6. Signed-off-by: Daniel Baumann --- .../tests/test_modules/abort-controller/polyfill.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debian/tests/test_modules/abort-controller/polyfill.js (limited to 'debian/tests/test_modules/abort-controller/polyfill.js') diff --git a/debian/tests/test_modules/abort-controller/polyfill.js b/debian/tests/test_modules/abort-controller/polyfill.js new file mode 100644 index 0000000..3ca8923 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/polyfill.js @@ -0,0 +1,21 @@ +/*globals require, self, window */ +"use strict" + +const ac = require("./dist/abort-controller") + +/*eslint-disable @mysticatea/prettier */ +const g = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + typeof global !== "undefined" ? global : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ + +if (g) { + if (typeof g.AbortController === "undefined") { + g.AbortController = ac.AbortController + } + if (typeof g.AbortSignal === "undefined") { + g.AbortSignal = ac.AbortSignal + } +} -- cgit v1.2.3