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

Snippet crashes browser #1159

Closed
GutzC opened this issue Jul 10, 2017 · 1 comment
Closed

Snippet crashes browser #1159

GutzC opened this issue Jul 10, 2017 · 1 comment

Comments

@GutzC
Copy link

GutzC commented Jul 10, 2017

Haven't been able to narrow down the exact segment of code that is causing the browser to crash, but when attempting to paste the attached snippet into the prism test page as Javascript, it causes the page to become unresponsive and have to manually force quit the tab.

broken_snippet.txt

@Golmote
Copy link
Contributor

Golmote commented Jul 11, 2017

Hi! Thanks for reporting. I tracked the performance issue down to the / char in the string "Mismatched closing tag (expected </". Prism was checking for a regexp starting from this point and had a really hard time backtracking. It should be fixed now.

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

No branches or pull requests

2 participants