• peterwmwong's avatar
    [js] Remove CORE JS Natives (prologue.js), port extra utils to C++/Torque · 263dce9b
    peterwmwong authored
    - Removes the last `CORE` JS native script: `prologue.js`.
    - Removes build step and bootstrapping associated with building/loading `CORE` JS natives.
    - Removes `natives_utils_object` from context.
    - Deprecates `--expose-natives-as` flag.
    - Ports extra utils functions to C++ (`uncurryThis`) or Torque
      (`createPrivateSymbol`, `markPromiseAsHandled`, and `promiseState`).
    - Move extra utils constants initialization into bootstrapper
      (`kPROMISE_PENDING`, `kPROMISE_FULFILLED`, `kPROMISE_REJECTED`).
    - Removes unused extra utils functions `log` and `logStackTrace`.
    
    Drive-by: Added test coverage for Array#includes being an unscopeable.
    
    Bug: v8:7624
    Change-Id: I5d983f8d11b76cb4dd3c2c67592ce1dc88364cd9
    Reviewed-on: https://chromium-review.googlesource.com/c/1381672Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
    Cr-Commit-Position: refs/heads/master@{#58577}
    263dce9b
natives.h 2.5 KB