UNPKG

477 BJavaScriptView Raw
1'use strict';
2var NativePromiseConstructor = require('../internals/promise-native-constructor');
3var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
4var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;
5
6module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {
7 NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });
8});