summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2018-07-16 22:03:01 +0200
committerMichaël Zasso <targos@protonmail.com>2018-07-26 08:34:33 +0200
commit68aa129ac1989d9dbb62c408ea4d478d3a7fc20e (patch)
tree4010b76a5260f4841537320902aef4083bc91106 /common.gypi
parent728078074439996d9f2d0f53e5fce12152540926 (diff)
downloadandroid-node-v8-68aa129ac1989d9dbb62c408ea4d478d3a7fc20e.tar.gz
android-node-v8-68aa129ac1989d9dbb62c408ea4d478d3a7fc20e.tar.bz2
android-node-v8-68aa129ac1989d9dbb62c408ea4d478d3a7fc20e.zip
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: https://github.com/v8/v8/commit/907d7bcd18c13a04a14eea6699e54167494bf9f9 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>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index c8100788de..adad6f6b73 100644
--- a/common.gypi
+++ b/common.gypi
@@ -28,7 +28,7 @@
# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
- 'v8_embedder_string': '-node.9',
+ 'v8_embedder_string': '-node.10',
# Enable disassembler for `--print-code` v8 options
'v8_enable_disassembler': 1,