• yangguo's avatar
    Rewrite Error.prototype.toString in C++. · 2e2765a6
    yangguo authored
    This avoids many back-and-forth calls to the runtime.
    
    This also slightly changes the way we avoid getters. Previously, we circumvent getting the name property of ReferenceError, SyntaxError and TypeError due to crbug/69187 (in order to avoid leaking information from those errors through a 'name' getter installed on their prototypes). Now we do that for all errors created by V8.
    
    R=jkummerow@chromium.org, rossberg@chromium.org
    BUG=crbug:513472, crbug:69187
    LOG=N
    
    Review URL: https://codereview.chromium.org/1281833002
    
    Cr-Commit-Position: refs/heads/master@{#30105}
    2e2765a6
error-constructors.js 5.2 KB