• dslomov's avatar
    Make sure debugger is ready for breakpoins when we process 'debugger' statement. · 15ef61d4
    dslomov authored
    On 'debugger' statement, if anything in debugger calls 'EnsureDebugInfo'
    on a function, EnsureDebugInfo would compile and substitute code without
    debug break slots. This causes weird behavior later when stepping fails
    to work (see added test as an example).
    This fix is to make sure the debugger is prepared for breakpoints in
    that case as well.
    
    Also adds extra testing for bug 468661.
    
    R=yangguo@chromium.org,yurys@chromium.orh
    BUG=v8:3990,chromium:468661
    LOG=N
    
    Review URL: https://codereview.chromium.org/1032353002
    
    Cr-Commit-Position: refs/heads/master@{#27502}
    15ef61d4
regress-468661.js 2.11 KB