Comment #2 on issue 3878 by [email protected]: RangeError running RegExp on large string
https://code.google.com/p/v8/issues/detail?id=3878

The above happens for me on both iojs 1.1 and node 0.12. The reason I noticed this was a RangeError generated here:

https://github.com/thlorenz/mold-source-map/blob/v0.3.0/index.js#L9

However, this previous error was behaving somewhat differently for me. First, the regex was different (see below). Second, it only happened on iojs 1.1, NOT on node 0.12. Third, I couldn't isolate it. Here was my attempt:

```
var fs = require('fs')
var patt = /^[ \t]*(?:\/\/|\/\*)[@#][ \t]+sourceMappingURL=data:(?:application| text)\/json;base64,(.+)(?:\*\/)?/mg;
var source = fs.readFileSync('./source.js', 'utf8')
source.match(patt)
```

I verified both the regex and the source string were identical between the live and the isolation environment, but the error only happened in the live environment. Unfortunately the contents of `source` are proprietary.

So I'm unsure whether the issue noted in my OP is really the same issue noted in this comment although they seem similar. Let me know if you need any other info.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to