Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Jan 8, 2025
1 parent 73aa664 commit a473a2e
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ features: [iterator-helpers]
flags: []
---*/
let nonCallable = {};
let iterator = (function* () {
function* gen() {
yield 1;
})();
}

assert.throws(TypeError, function () {
iterator.reduce(nonCallable);
gen().reduce(nonCallable);
});

iterator.reduce(() => {});
gen().reduce(() => {});
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let closable = {
},
return() {
closed = true;
return {};
},
};

Expand Down

0 comments on commit a473a2e

Please sign in to comment.