• verwaest's avatar
    Support subclassing API functions. · 73ee7943
    verwaest authored
    When instantiating a subclassed API function, the instance cache is avoided. There is currently no direct API yet to instantiate a Template while passing in a new.target. It probably makes sense to extend ObjectTemplate::NewInstance to accept a new.target, in line with Reflect.construct.
    
    BUG=v8:3330, v8:5001
    
    Review-Url: https://codereview.chromium.org/1972613002
    Cr-Commit-Position: refs/heads/master@{#36179}
    73ee7943
api-natives.cc 23.2 KB