node_modules/es-abstract/2019/AsyncFromSyncIteratorContinuation.js in immosquare-cleaner-0.1.32 vs node_modules/es-abstract/2019/AsyncFromSyncIteratorContinuation.js in immosquare-cleaner-0.1.38
- old
+ new
@@ -1,11 +1,11 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
-var $SyntaxError = GetIntrinsic('%SyntaxError%');
-var $TypeError = GetIntrinsic('%TypeError%');
+var $SyntaxError = require('es-errors/syntax');
+var $TypeError = require('es-errors/type');
var $Promise = GetIntrinsic('%Promise%', true);
var callBound = require('call-bind/callBound');
var CreateIterResultObject = require('./CreateIterResultObject');
@@ -29,10 +29,10 @@
if (!$Promise) {
throw new $SyntaxError('This environment does not support Promises.');
}
- return new Promise(function (resolve) {
+ return new $Promise(function (resolve) {
var done = IteratorComplete(result); // step 2
var value = IteratorValue(result); // step 4
var valueWrapper = PromiseResolve($Promise, value); // step 6
// eslint-disable-next-line no-shadow