• adamk's avatar
    [promises] Remove unneeded PromiseCreate function from promise.js · a0e3a8ee
    adamk authored
    This function was only needed for extrasUtils. Since it was simply
    calling a builtin function, just expose that builtin instead. This
    requires an arguments adapter frame for the builtin. As a drive-by
    fix, also added an arguments adapter for the extrasUtils.resolvePromise
    (and a regression test).
    
    Other cleanup: removed unused native context slot for PROMISE_SET_AND_CREATE.
    
    R=gsathya@chromium.org
    BUG=v8:5343
    
    Review-Url: https://codereview.chromium.org/2626793003
    Cr-Commit-Position: refs/heads/master@{#42284}
    a0e3a8ee
promise.js 4.82 KB