Commit f47dc87e authored by Romain Courteaud's avatar Romain Courteaud

Do not use native promise by default.

It breaks Firefox compatibility for jio/renderjs.
parent b8279d82
...@@ -81,14 +81,14 @@ function useSetTimeout() { ...@@ -81,14 +81,14 @@ function useSetTimeout() {
}; };
} }
if (checkNativePromise()) { if (typeof setImmediate === 'function') {
async = useNativePromise();
} else if (typeof setImmediate === 'function') {
async = useSetImmediate(); async = useSetImmediate();
} else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { } else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
async = useNextTick(); async = useNextTick();
} else if (BrowserMutationObserver) { } else if (BrowserMutationObserver) {
async = useMutationObserver(); async = useMutationObserver();
} else if (checkNativePromise()) {
async = useNativePromise();
} else { } else {
async = useSetTimeout(); async = useSetTimeout();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment