We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae25d5 commit f5b84e3Copy full SHA for f5b84e3
src/helpers.js
@@ -9,11 +9,9 @@ function setImmediatePolyfill(fn) {
9
}
10
11
// istanbul ignore next
12
-const {
13
- setTimeout,
14
- clearTimeout,
15
- setImmediate = setImmediatePolyfill,
16
-} = globalObj
+const clearTimeoutFn = globalObj.clearTimeout
+const setImmediateFn = globalObj.setImmediate || setImmediatePolyfill
+const setTimeoutFn = globalObj.setTimeout
17
18
function newMutationObserver(onMutation) {
19
const MutationObserverConstructor =
@@ -36,7 +34,7 @@ function getDocument() {
36
34
export {
37
35
getDocument,
38
newMutationObserver,
39
- setImmediate,
40
41
+ clearTimeoutFn as clearTimeout,
+ setImmediateFn as setImmediate,
+ setTimeoutFn as setTimeout,
42
0 commit comments