Skip to content

Commit ad767b9

Browse files
committed
minor stylistic fix
1 parent d88bf17 commit ad767b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core-js/modules/es.iterator.map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ var iteratorClose = require('../internals/iterator-close');
1010
var iteratorHelperWithoutClosingOnEarlyError = require('../internals/iterator-helper-without-closing-on-early-error');
1111
var IS_PURE = require('../internals/is-pure');
1212

13+
var mapWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
14+
1315
var IteratorProxy = createIteratorProxy(function () {
1416
var iterator = this.iterator;
1517
var result = anObject(call(this.next, iterator));
1618
var done = this.done = !!result.done;
1719
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1820
});
1921

20-
var mapWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
21-
2222
// `Iterator.prototype.map` method
2323
// https://tc39.es/ecma262/#sec-iterator.prototype.map
2424
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || mapWithoutClosingOnEarlyError }, {

0 commit comments

Comments
 (0)