File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
scripts/build-entries-and-types Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11// @types : proposals/iterator-helpers
2- // @types : proposals/iterator-sequencing
3- // @types : proposals/explicit-resource-management
42'use strict' ;
53var $ = require ( '../internals/export' ) ;
64var globalThis = require ( '../internals/global-this' ) ;
Original file line number Diff line number Diff line change @@ -377,13 +377,11 @@ export const features = {
377377 'array/iterator' : {
378378 modules : [ 'es.array.iterator' ] ,
379379 template : $uncurriedIterator ,
380- source : '[]' ,
381380 namespace : 'Array' ,
382381 } ,
383382 'array/prototype/iterator' : {
384383 modules : [ 'es.array.iterator' ] ,
385384 template : $prototypeIterator ,
386- source : '[]' ,
387385 namespace : 'Array' ,
388386 } ,
389387 'array/join' : {
@@ -2456,13 +2454,11 @@ export const features = {
24562454 'string/iterator' : {
24572455 modules : [ 'es.string.iterator' ] ,
24582456 template : $uncurriedIterator ,
2459- source : "''" ,
24602457 namespace : 'String' ,
24612458 } ,
24622459 'string/prototype/iterator' : {
24632460 modules : [ 'es.string.iterator' ] ,
24642461 template : $prototypeIterator ,
2465- source : "''" ,
24662462 namespace : 'String' ,
24672463 } ,
24682464 'string/link' : {
Original file line number Diff line number Diff 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 ) } ' {
You can’t perform that action at this time.
0 commit comments