From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/core-js/modules/esnext.iterator.drop.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/esnext.iterator.drop.js b/PAMapp/node_modules/core-js/modules/esnext.iterator.drop.js index 0aeb785..2361ac9 100644 --- a/PAMapp/node_modules/core-js/modules/esnext.iterator.drop.js +++ b/PAMapp/node_modules/core-js/modules/esnext.iterator.drop.js @@ -1,6 +1,8 @@ 'use strict'; // https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); +var apply = require('../internals/function-apply'); +var call = require('../internals/function-call'); var anObject = require('../internals/an-object'); var toPositiveInteger = require('../internals/to-positive-integer'); var createIteratorProxy = require('../internals/iterator-create-proxy'); @@ -11,16 +13,16 @@ var result, done; while (this.remaining) { this.remaining--; - result = anObject(next.call(iterator)); + result = anObject(call(next, iterator)); done = this.done = !!result.done; if (done) return; } - result = anObject(next.apply(iterator, args)); + result = anObject(apply(next, iterator, args)); done = this.done = !!result.done; if (!done) return result.value; }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { drop: function drop(limit) { return new IteratorProxy({ iterator: anObject(this), -- Gitblit v1.8.0