File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1169,7 +1169,7 @@ class QAST::OperationsJS {
1169
1169
1170
1170
ChunkCPS. new ($ T_OBJ , $ result , [
1171
1171
$ list ,
1172
- " $ iterator = nqp.op.iterator( { $ list . expr} );\n " ,
1172
+ " $ iterator = { $ list . expr} .\$\$iterator( );\n " ,
1173
1173
" var $ loop = function() \{\n " ,
1174
1174
" if ($ iterator .idx < $ iterator .target) \{\n " ,
1175
1175
$ * BLOCK . set_cont($ body , $ loop ),
@@ -1184,7 +1184,7 @@ class QAST::OperationsJS {
1184
1184
else {
1185
1185
Chunk. new ($ T_OBJ , ' null' , [
1186
1186
$ list ,
1187
- " $ iterator = nqp.op.iterator( { $ list . expr} );\n " ,
1187
+ " $ iterator = { $ list . expr} .\$\$iterator( );\n " ,
1188
1188
" while ($ iterator .idx < $ iterator .target) \{\n " ,
1189
1189
$ comp . handle_control($ loop , $ body ),
1190
1190
" \}\n "
Original file line number Diff line number Diff line change @@ -85,11 +85,6 @@ op.setdebugtypename = function(type, debugName) {
85
85
return type ;
86
86
} ;
87
87
88
- op . iterator = function ( obj ) {
89
- return obj . $$iterator ( ) ;
90
- } ;
91
-
92
-
93
88
exports . hash = function ( ) {
94
89
return new Hash ( ) ;
95
90
} ;
You can’t perform that action at this time.
0 commit comments