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

Prevent from RangeError exceptions on large data #18

Closed
wants to merge 1 commit into from

Commits on Jun 30, 2015

  1. Prevent from RangeError exceptions on large data

    On io.js 2.2.1 and 2.3.1 (by the time of writing it's the latest) I have this error:
    
    ```
    RangeError: Maximum call stack size exceeded
      at String.match (native)
    ```
    
    It happens only on the second pass while karma is working (auto watching and reruns the specs).
    
    For more details read this issue:
    
    nodejs/node#759
    
    Similar issues:
    
    thlorenz/convert-source-map#10
    thlorenz/convert-source-map#11
    
    Looks like this related to optimizations in V8 regex engine:
    http://blog.chromium.org/2009/02/irregexp-google-chromes-new-regexp.html
    
    Simply changing from `.+` to `..*` equivalent rule fixes an issue with match function.
    dmitry committed Jun 30, 2015
    Configuration menu
    Copy the full SHA
    3ca125d View commit details
    Browse the repository at this point in the history