Skip to content

Commit 8a2f736

Browse files
joyeecheungnodejs-github-bot
authored andcommitted
build: enable V8_ENABLE_PROMISE_HOOKS
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/8871605 Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 35dfca4 commit 8a2f736

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tools/v8_gypfiles/features.gypi‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@
257257
# Sets -DV8_DICT_PROPERTY_CONST_TRACKING
258258
'v8_dict_property_const_tracking%': 0,
259259

260+
# Enable C++ PromiseHooks.
261+
'v8_enable_promise_hooks%': 1,
262+
260263
# Allow for JS promise hooks (instead of just C++).
264+
# Requires v8_enable_promise_hooks.
261265
'v8_enable_javascript_promise_hooks%': 0,
262266

263267
# Allow for JS promise hooks (instead of just C++).
@@ -554,6 +558,9 @@
554558
['v8_dict_property_const_tracking==1', {
555559
'defines': ['V8_DICT_PROPERTY_CONST_TRACKING',],
556560
}],
561+
['v8_enable_promise_hooks==1', {
562+
'defines': ['V8_ENABLE_PROMISE_HOOKS',],
563+
}],
557564
['v8_enable_javascript_promise_hooks==1', {
558565
'defines': ['V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS',],
559566
}],

0 commit comments

Comments
 (0)