Skip to content

Commit 2da9d9b

Browse files
committed
Remove redundant entries definition & type dependencies
1 parent 7030d8d commit 2da9d9b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// @types: proposals/iterator-helpers
2-
// @types: proposals/iterator-sequencing
3-
// @types: proposals/explicit-resource-management
42
'use strict';
53
var $ = require('../internals/export');
64
var globalThis = require('../internals/global-this');

scripts/build-entries-and-types/entries-definitions.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ export const features = {
383383
'array/prototype/iterator': {
384384
modules: ['es.array.iterator'],
385385
template: $prototypeIterator,
386-
source: '[]',
387386
namespace: 'Array',
388387
},
389388
'array/join': {

scripts/build-entries-and-types/templates.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const $prototypeIterator = p => ({
112112
113113
var getIteratorMethod = ${ importInternal('get-iterator-method', p.level) }
114114
115-
module.exports = getIteratorMethod(${ p.source });
115+
module.exports = getIteratorMethod(${ p.namespace });
116116
`,
117117
types: dedent`
118118
declare module '${ buildModulePath(p) }' {
@@ -162,7 +162,7 @@ export const $uncurriedIterator = p => ({
162162
var uncurryThis = ${ importInternal('function-uncurry-this', p.level) }
163163
var getIteratorMethod = ${ importInternal('get-iterator-method', p.level) }
164164
165-
module.exports = uncurryThis(getIteratorMethod(${ p.source }));
165+
module.exports = uncurryThis(getIteratorMethod(${ p.namespace }));
166166
`,
167167
types: dedent`
168168
declare module '${ buildModulePath(p) }' {

0 commit comments

Comments
 (0)