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: js runtime explode in edge case with involving multiple builds #2619

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

barak007
Copy link
Collaborator

@barak007 barak007 commented Jul 19, 2022

fix an edge case were injecting a stylesheet duplicate of an already injected stylesheet with lower depth causes an unexpected error to be thrown.

This is no easily reproducible since it requires multiple builds of the same project with multiple versions to be loaded together (not an ideal production strategy, but we found a project that encounter it).

simple case fail:
inject('ns', 1)
inject('ns', 0) <-- error

Note: this is a fix for v5, a similar fix for v4 also exist here #2620

@idoros idoros added bug Unexpected behavior or exception runtime Runtime API labels Jul 19, 2022
@idoros idoros self-requested a review July 19, 2022 08:00
@barak007 barak007 merged commit 3e8a358 into master Jul 20, 2022
@barak007 barak007 deleted the barak/runtime-bugfix branch July 20, 2022 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior or exception runtime Runtime API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants