• luoe's avatar
    Generate inferred names for es6 class functions · e80cfa00
    luoe authored
    Inferred names are currently generated for FunctionLiterals but not generated
    for ClassLiterals. Without them, DevTools does not have enough information to
    make descriptive descriptions.
    
    E.g.
    var x = {y: class{}};
    var a = new x.y();
    console.log(a);
    
    This shows "Object{}" when it could be more descriptive "x.y {}"
    
    BUG=v8:5621
    CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
    
    Review-Url: https://codereview.chromium.org/2488193003
    Cr-Commit-Position: refs/heads/master@{#41013}
    e80cfa00
test-func-name-inference.cc 20.1 KB