Skip to content

Commit

Permalink
fix: IteratorResult in getAnonymousIntrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 23, 2024
1 parent 157f729 commit 2ee878c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ses/src/get-anonymous-intrinsics.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ export const getAnonymousIntrinsics = () => {
);
intrinsics['%WrapForValidIteratorPrototype%'] = getPrototypeOf(
// eslint-disable-next-line @endo/no-polymorphic-call
globalThis.Iterator.from({ next() {} }),
globalThis.Iterator.from({
next() {
return { value: undefined };
},
}),
);
}

Expand Down

0 comments on commit 2ee878c

Please sign in to comment.