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 RangeError on large files #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jscheid
Copy link

@jscheid jscheid commented Jul 2, 2015

When the source file and/or the source map URL is sufficiently large (think several MB) the regexp search to find the URL can run into this issue: https://code.google.com/p/v8/issues/detail?id=3878

Change the regexp to look just for the prefix and extract the URL using substring, which scales better.

This now doesn't pay attention to single and double quotes anymore, reading the spec there seems to be no need for it. Do you know of quoted source map URLs in the wild?

FWIW we've run into the RangeError with a large webpack development bundle on Chrome Version 43.0.2357.130 (64-bit).

When the source file and/or the source map URL is sufficiently
large (think several MB) the regexp search to find the URL can run into
this issue: https://code.google.com/p/v8/issues/detail?id=3878

Change the regexp to look just for the prefix and extract the URL using
substring, which scales better.

This now doesn't pay attention to single and double quotes anymore,
reading the spec there seems to be no need for it.
@glortho
Copy link

glortho commented Jan 7, 2016

Any update on this? It fixes our maximum call stack issues and would be nice to have merged.

@jscheid
Copy link
Author

jscheid commented Jan 7, 2016

@glortho yup, very little movement here. But I just noticed that there is #87, are you still running into the RangeError with that? #87 (comment) sounds like it also fixes it.

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

2 participants