• gsathya's avatar
    [promises] Don't create resolving functions for PromiseCreate · 1f89abcb
    gsathya authored
    Previously passing in the PromiseNopResolver function to the Promise
    constructor would result in creating the resolving functions to be in
    passed in to the executor, but the PromiseNopResolver does not use
    these resolving functions resulting in wastefully creating these closures.
    
    Instead we pass in the promiseRawSymbol to the promise constructor
    so that these unnecessary resolving functions are not created.
    
    BUG=v8:5046
    
    Review-Url: https://codereview.chromium.org/2353303003
    Cr-Commit-Position: refs/heads/master@{#39791}
    1f89abcb
promise.js 24.1 KB