• gsathya's avatar
    [promises] Move CreateResolvingFunctions to c++ · cb6c8e48
    gsathya authored
    - A new runtime function (%create_resolving_functions) is installed to
      call the CreateResolvingFunctions builtin from JS.
    
    - Three new builtins are created - resolve and reject functions and a
      third function that creates a new JSFunctions from these
      resolve/reject builtins.
    
    - The promise reject function is installed on the context temporarily
      as internal_promise_reject. This should go away once we remove
      PromiseSet.
    
    BUG=v8:5343
    
    Review-Url: https://codereview.chromium.org/2459283004
    Cr-Commit-Position: refs/heads/master@{#40903}
    cb6c8e48
async-await.js 6.03 KB