promise-statics-incorrect-iteration.js 463 B

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