diff options
Diffstat (limited to 'debian/tests/test_modules/abort-controller/browser.js')
-rw-r--r-- | debian/tests/test_modules/abort-controller/browser.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/test_modules/abort-controller/browser.js b/debian/tests/test_modules/abort-controller/browser.js new file mode 100644 index 0000000..b0c5ec3 --- /dev/null +++ b/debian/tests/test_modules/abort-controller/browser.js @@ -0,0 +1,13 @@ +/*globals self, window */ +"use strict" + +/*eslint-disable @mysticatea/prettier */ +const { AbortController, AbortSignal } = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ + +module.exports = AbortController +module.exports.AbortSignal = AbortSignal +module.exports.default = AbortController |