0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/deps/v8/include
Michaël Zasso 68aa129ac1
deps: cherry-pick 907d7bc from upstream V8
Original commit message:

    [promise] Implement Swallowed Rejection Hook.

    This extends the current Promise Rejection Hook with two new events

      kPromiseRejectAfterResolved
      kPromiseResolveAfterResolved

    which are used to detect (and signal) misuse of the Promise constructor.
    Specifically the common bug like

      new Promise((res, rej) => {
        res(1);
        throw new Error("something")
      });

    where the error is silently swallowed by the Promise constructor without
    the user ever noticing can be caught via this hook.

    Doc: https://goo.gl/2stLUY
    Bug: v8:7919
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I890a7e766cdd1be88db94844fb744f72823dba33
    Reviewed-on: https://chromium-review.googlesource.com/1126099
    Reviewed-by: Maya Lekova <mslekova@chromium.org>
    Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: Yang Guo <yangguo@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#54309}

Refs: 907d7bcd18

PR-URL: https://github.com/nodejs/node/pull/21838
Refs: https://github.com/nodejs/promises-debugging/issues/8
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com>
2018-07-26 08:34:33 +02:00
..
libplatform deps: update V8 to 6.8.275.24 2018-07-26 08:31:50 +02:00
APIDesign.md deps: update V8 to 6.1.534.36 2017-09-13 16:15:18 +02:00
DEPS deps: update V8 to 5.5.372.40 2017-01-26 22:46:17 +01:00
OWNERS deps: update V8 to 6.7.288.43 2018-06-01 09:58:27 +02:00
PRESUBMIT.py deps: update V8 to 6.6.346.23 2018-04-11 13:22:42 -04:00
v8-inspector-protocol.h deps: update V8 to 5.5.372.40 2017-01-26 22:46:17 +01:00
v8-inspector.h deps: update V8 to 6.8.275.24 2018-07-26 08:31:50 +02:00
v8-platform.h deps: update V8 to 6.8.275.24 2018-07-26 08:31:50 +02:00
v8-profiler.h deps: cherry-pick 555c811 from upstream V8 2018-07-26 08:34:26 +02:00
v8-testing.h deps: upgrade to V8 4.9.385.18 2016-03-03 20:35:20 -08:00
v8-util.h deps: update V8 to 6.6.346.23 2018-04-11 13:22:42 -04:00
v8-value-serializer-version.h deps: update V8 to 6.0.286.52 2017-08-01 15:23:15 -05:00
v8-version-string.h deps: update V8 to 6.4.388.40 2018-01-24 15:02:20 -08:00
v8-version.h deps: update V8 to 6.8.275.24 2018-07-26 08:31:50 +02:00
v8.h deps: cherry-pick 907d7bc from upstream V8 2018-07-26 08:34:33 +02:00
v8config.h deps: update V8 to 6.7.288.43 2018-06-01 09:58:27 +02:00