Skip to content
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

fix: fix crash when reportError. #913

Merged
merged 3 commits into from Nov 30, 2021
Merged

fix: fix crash when reportError. #913

merged 3 commits into from Nov 30, 2021

Conversation

andycall
Copy link
Member

修复当一个 新的 Context 创建后,新的 Context 会覆盖原先 context 所注册的 JS_SetHostPromiseRejectionTracker 回调,导致原先 context 触发 promise 异常时找不到上下文。

Copy link
Member

@answershuto answershuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加个用例吧

@answershuto answershuto merged commit 8d75746 into main Nov 30, 2021
@answershuto answershuto deleted the fix/invoke_module_crash branch November 30, 2021 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants