From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:02:38 +0800 Subject: [PATCH] TODO#139884 Banner 1 文案調整 --- PAMapp/node_modules/core-js/internals/async-iterator-iteration.js | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PAMapp/node_modules/core-js/internals/async-iterator-iteration.js b/PAMapp/node_modules/core-js/internals/async-iterator-iteration.js index 1add82e..6deb863 100644 --- a/PAMapp/node_modules/core-js/internals/async-iterator-iteration.js +++ b/PAMapp/node_modules/core-js/internals/async-iterator-iteration.js @@ -1,12 +1,15 @@ 'use strict'; // https://github.com/tc39/proposal-iterator-helpers // https://github.com/tc39/proposal-array-from-async +var global = require('../internals/global'); +var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); var getBuiltIn = require('../internals/get-built-in'); var getMethod = require('../internals/get-method'); var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; +var TypeError = global.TypeError; var createMethod = function (TYPE) { var IS_TO_ARRAY = TYPE == 0; @@ -26,7 +29,7 @@ try { var returnMethod = getMethod(iterator, 'return'); if (returnMethod) { - return Promise.resolve(returnMethod.call(iterator)).then(function () { + return Promise.resolve(call(returnMethod, iterator)).then(function () { method(argument); }, function (error) { reject(error); @@ -46,7 +49,7 @@ if (IS_TO_ARRAY && (index > MAX_SAFE_INTEGER) && MAPPING) { throw TypeError('The allowed number of iterations has been exceeded'); } - Promise.resolve(anObject(next.call(iterator))).then(function (step) { + Promise.resolve(anObject(call(next, iterator))).then(function (step) { try { if (anObject(step).done) { if (IS_TO_ARRAY) { -- Gitblit v1.8.0