Skip to content

Added test for TypedArray constructors where GetIteratorFromMethod throws#4895

Open
G-Lee1031 wants to merge 2 commits intotc39:mainfrom
G-Lee1031:getiteratorfrommethod
Open

Added test for TypedArray constructors where GetIteratorFromMethod throws#4895
G-Lee1031 wants to merge 2 commits intotc39:mainfrom
G-Lee1031:getiteratorfrommethod

Conversation

@G-Lee1031
Copy link
Contributor

Hello.
This PR adds test case where GetIteratorFromMethod(firstArgument, usingIterator) called in TypedArray constructor step 6.b.iv.3.a returns an abrupt completion in step 1.

In GetIteratorFromMethod step 1, usingIterator which is a %Symbol.iterator% method of args[0] is called. In this specific PR, abrupt completion is returned by setting args as {[Symbol.iterator] : () => {throw new Test262Error;}}.

@G-Lee1031 G-Lee1031 requested a review from a team as a code owner January 29, 2026 07:16
@G-Lee1031 G-Lee1031 force-pushed the getiteratorfrommethod branch from e25dc04 to 9e44d17 Compare January 29, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants