-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS 18333466 : Recursion in the generator next call. #5519
Conversation
@aneeshdk please have a look |
{ | ||
JavascriptExceptionOperators::DoThrow(exceptionObj, scriptContext); | ||
JavascriptExceptionOperators::DoThrowCheckClone(exception, scriptContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DoThrowCheckClone [](start = 50, length = 17)
Why does it need to change from DoThrow to DoThrowCheckClone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A similar pattern (a catch with a DoThrow in it) looks like it is in |
@irinayat-MS for OOM and SO we used to clone them as they are static exception. It seems I saw that pattern that's why I changed to that. |
@MSLaguana thanks for finding that out. I'll make that change |
@irinayat-MS yes - it seems like that is right. |
LGTM |
Moving exception throw out from the catch handler. Otherwise we will throw hard stack overflow. Fixed that in the DoIteratorStepAndValue as well
…enerator next call. Merge pull request #5519 from akroshg:generator Moving exception throw out from the catch handler. Otherwise we will throw hard stack overflow.
Moving exception throw out from the catch handler. Otherwise we will throw hard stack overflow.