summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-23 00:02:14 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-01-06 10:28:44 +0800
commitbf566718b29a6fae8cef8d0fecd7e77948726d5a (patch)
tree2388b6a0ece578d891487c1c1657aeee31b60e51 /src/node_internals.h
parentf6a1d88c5d1c813c8d55933436b4b834a29f449f (diff)
downloadandroid-node-v8-bf566718b29a6fae8cef8d0fecd7e77948726d5a.tar.gz
android-node-v8-bf566718b29a6fae8cef8d0fecd7e77948726d5a.tar.bz2
android-node-v8-bf566718b29a6fae8cef8d0fecd7e77948726d5a.zip
src: refactor tickInfo access
- Wrap access to tickInfo fields in functions - Rename `kHasScheduled` to `kHasTickScheduled` and `kHasPromiseRejections` to `kHasRejectionToWarn` for clarity - note the latter will be set to false if the rejection does not lead to a warning so the previous description is not accurate. - Set `kHasRejectionToWarn` in JS land of relying on C++ to use an implict contract (return value of the promise rejection handler) to set it, as the decision is made entirely in JS land. - Destructure promise reject event constants. PR-URL: https://github.com/nodejs/node/pull/25200 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_internals.h')
0 files changed, 0 insertions, 0 deletions