Switch branches/tags
Find file History
Pull request Compare This branch is 2544 commits behind nodejs:master.
Latest commit 7efb8f7 Aug 24, 2017
gabrielschulhof n-api: implement promise
Promise is implemented as a pair of objects. `napi_create_promise()`
returns both a JavaScript promise and a newly allocated "deferred" in
its out-params. The deferred is linked to the promise such that the
deferred can be passed to `napi_resolve_deferred()` or
`napi_reject_deferred()` to reject/resolve the promise.

`napi_is_promise()` can be used to check if a `napi_value` is a native
promise - that is, a promise created by the underlying engine, rather
than a pure JS implementation of a promise.

PR-URL: nodejs#14365
Fixes: nodejs/abi-stable-node#242
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Permalink
..
Failed to load latest commit information.
res meta: restore original copyright header Mar 10, 2017
tracing src: Node implementation of v8::Platform Aug 17, 2017
CNNICHashWhitelist.inc crypto: Remove expired certs from CNNIC whitelist Feb 3, 2017
StartComAndWoSignData.inc crypto: add cert check issued by StartCom/WoSign Feb 3, 2017
async-wrap-inl.h src: return MaybeLocal in AsyncWrap::MakeCallback Aug 2, 2017
async-wrap.cc src: reduce code duplication Aug 23, 2017
async-wrap.h src: reduce code duplication Aug 23, 2017
backtrace_posix.cc src: unbreak build when compiling against uclibc Sep 5, 2016
backtrace_win32.cc src: print backtrace on fatal error Jun 29, 2016
base-object-inl.h meta: restore original copyright header Mar 10, 2017
base-object.h meta: restore original copyright header Mar 10, 2017
base64.h src: fix decoding base64 with whitespace Jun 16, 2017
cares_wrap.cc dns: add `verbatim` option to dns.lookup() Aug 23, 2017
connect_wrap.cc async_wrap,src: add GetAsyncId() method May 10, 2017
connect_wrap.h async_wrap,src: add GetAsyncId() method May 10, 2017
connection_wrap.cc src: implement native changes for async_hooks May 10, 2017
connection_wrap.h src: implement native changes for async_hooks May 10, 2017
env-inl.h perf_hooks: implementation of the perf timing API Aug 23, 2017
env.cc src: remove duplicate loop Aug 11, 2017
env.h perf_hooks: implementation of the perf timing API Aug 23, 2017
freelist.h http2: introducing HTTP/2 Aug 4, 2017
fs_event_wrap.cc src: reduce code duplication Aug 23, 2017
handle_wrap.cc src: implement native changes for async_hooks May 10, 2017
handle_wrap.h src: implement native changes for async_hooks May 10, 2017
inspector_agent.cc src: Node implementation of v8::Platform Aug 17, 2017
inspector_agent.h src: Node implementation of v8::Platform Aug 17, 2017
inspector_io.cc inspector: send messages after the Node is done Jul 26, 2017
inspector_io.h inspector: perform DNS lookup for host Jun 16, 2017
inspector_socket.cc src: replace ASSERT with CHECK Jul 27, 2017
inspector_socket.h inspector: perform DNS lookup for host Jun 16, 2017
inspector_socket_server.cc inspector: perform DNS lookup for host Jun 16, 2017
inspector_socket_server.h inspector: perform DNS lookup for host Jun 16, 2017
js_stream.cc src: reduce code duplication Aug 23, 2017
js_stream.h src: implement native changes for async_hooks May 10, 2017
node.cc perf_hooks: implementation of the perf timing API Aug 23, 2017
node.d dtrace: add missing translator Feb 3, 2012
node.h http2: address initial pr feedback Aug 4, 2017
node.stp meta: restore original copyright header Mar 10, 2017
node_api.cc n-api: implement promise Aug 25, 2017
node_api.h n-api: implement promise Aug 25, 2017
node_api_types.h n-api: implement promise Aug 25, 2017
node_buffer.cc src: replace ASSERT with CHECK Jul 27, 2017
node_buffer.h buffer: remove a wrongly added attribute specifier Jul 29, 2017
node_config.cc src: fixup strings, reduce duplication Aug 23, 2017
node_constants.cc zlib: improve performance Jun 13, 2017
node_constants.h crypto: add sign/verify support for RSASSA-PSS Apr 1, 2017
node_contextify.cc vm: fix race condition with timeout param May 23, 2017
node_counters.cc meta: restore original copyright header Mar 10, 2017
node_counters.h meta: restore original copyright header Mar 10, 2017
node_crypto.cc src: reduce code duplication Aug 23, 2017
node_crypto.h src: remove unused Connection::ClearError() Aug 7, 2017
node_crypto_bio.cc http2: address initial pr feedback Aug 4, 2017
node_crypto_bio.h src: move crypto_bio/clienthello to crypto ns Jun 30, 2017
node_crypto_clienthello-inl.h src: move crypto_bio/clienthello to crypto ns Jun 30, 2017
node_crypto_clienthello.cc src: move crypto_bio/clienthello to crypto ns Jun 30, 2017
node_crypto_clienthello.h src: move crypto_bio/clienthello to crypto ns Jun 30, 2017
node_crypto_groups.h meta: restore original copyright header Mar 10, 2017
node_debug_options.cc src,lib,test,doc: correct misspellings Jun 17, 2017
node_debug_options.h inspector: allow --inspect=host:port from js Jun 6, 2017
node_dtrace.cc meta: restore original copyright header Mar 10, 2017
node_dtrace.h meta: restore original copyright header Mar 10, 2017
node_file.cc src: use proper errors as coming from StringBytes Aug 24, 2017
node_http2.cc src: fix build on certain platforms Aug 24, 2017
node_http2.h http2: minor refactor of passing headers to JS Aug 17, 2017
node_http2_core-inl.h http2: ignore invalid headers explicitly Aug 23, 2017
node_http2_core.h http2: ignore invalid headers explicitly Aug 23, 2017
node_http_parser.cc src: reduce code duplication Aug 23, 2017
node_i18n.cc util: implement WHATWG Encoding Standard API Jul 24, 2017
node_i18n.h build: fix build without icu Aug 1, 2017
node_internals.h perf_hooks: implementation of the perf timing API Aug 23, 2017
node_javascript.h meta: restore original copyright header Mar 10, 2017
node_lttng.cc src: replace ARRAY_SIZE with typesafe arraysize Apr 5, 2016
node_lttng.h src: add include guards to internal headers May 25, 2016
node_lttng_provider.h src: fix typos in node_lttng_provider.h Mar 10, 2017
node_lttng_tp.h src: lint node_lttng_tp.h Jun 28, 2016
node_main.cc src: add linux getauxval(AT_SECURE) in SafeGetenv May 25, 2017
node_mutex.h src: use RAII for mutexes and condition variables Jun 21, 2016
node_object_wrap.h meta: restore original copyright header Mar 10, 2017
node_os.cc src: use proper errors as coming from StringBytes Aug 24, 2017
node_perf.cc perf_hooks: implementation of the perf timing API Aug 23, 2017
node_perf.h perf_hooks: implementation of the perf timing API Aug 23, 2017
node_perf_common.h src: fix build on certain platforms Aug 24, 2017
node_platform.cc src: Node implementation of v8::Platform Aug 17, 2017
node_platform.h src: Node implementation of v8::Platform Aug 17, 2017
node_provider.d src: remove unused dtrace probes Feb 2, 2015
node_revert.h src: minor cleanup for node_revert Aug 18, 2017
node_root_certs.h crypto: update root certificates May 29, 2017
node_serdes.cc src: fixup strings, reduce duplication Aug 23, 2017
node_stat_watcher.cc src: reduce code duplication Aug 23, 2017
node_stat_watcher.h meta: restore original copyright header Mar 10, 2017
node_url.cc src: remove extra copy from Copy() in node_url.cc Aug 21, 2017
node_url.h url: fix C0 control and whitespace handling May 20, 2017
node_util.cc util: implement WHATWG Encoding Standard API Jul 24, 2017
node_v8.cc meta: restore original copyright header Mar 10, 2017
node_version.h n-api: add napi_get_node_version Aug 12, 2017
node_watchdog.cc vm: fix race condition with timeout param May 23, 2017
node_watchdog.h vm: fix race condition with timeout param May 23, 2017
node_win32_etw_provider-inl.h meta: restore original copyright header Mar 10, 2017
node_win32_etw_provider.cc meta: restore original copyright header Mar 10, 2017
node_win32_etw_provider.h meta: restore original copyright header Mar 10, 2017
node_win32_perfctr_provider.cc meta: restore original copyright header Mar 10, 2017
node_win32_perfctr_provider.h meta: restore original copyright header Mar 10, 2017
node_wrap.h meta: restore original copyright header Mar 10, 2017
node_zlib.cc src: reduce code duplication Aug 23, 2017
nolttng_macros.py tracing: add lttng support for tracing on linux Feb 9, 2015
notrace_macros.py src: remove unused dtrace probes Feb 2, 2015
perfctr_macros.py windows: add tracing with performance counters Nov 21, 2012
pipe_wrap.cc src: reduce code duplication Aug 23, 2017
pipe_wrap.h src: implement native changes for async_hooks May 10, 2017
process_wrap.cc src: reduce code duplication Aug 23, 2017
req-wrap-inl.h async_wrap,src: add GetAsyncId() method May 10, 2017
req-wrap.h src: make ReqWrap req_ member private Sep 23, 2016
signal_wrap.cc src: reduce code duplication Aug 23, 2017
spawn_sync.cc meta: restore original copyright header Mar 10, 2017
spawn_sync.h meta: restore original copyright header Mar 10, 2017
stream_base-inl.h src: implement native changes for async_hooks May 10, 2017
stream_base.cc http2: address initial pr feedback Aug 4, 2017
stream_base.h http2: introducing HTTP/2 Aug 4, 2017
stream_wrap.cc src: reduce code duplication Aug 23, 2017
stream_wrap.h src: remove unnecessary helper function Aug 23, 2017
string_bytes.cc src: use proper errors as coming from StringBytes Aug 24, 2017
string_bytes.h src: remove unused parameters May 22, 2017
string_search.cc src: fix readability/namespace cpplint warnings Jun 28, 2016
string_search.h src: replace ASSERT with CHECK Jul 27, 2017
tcp_wrap.cc src: reduce code duplication Aug 23, 2017
tcp_wrap.h src: implement native changes for async_hooks May 10, 2017
timer_wrap.cc src: reduce code duplication Aug 23, 2017
tls_wrap.cc src: reduce code duplication Aug 23, 2017
tls_wrap.h src: move crypto_bio/clienthello to crypto ns Jun 30, 2017
tty_wrap.cc src: reduce code duplication Aug 23, 2017
tty_wrap.h tty_wrap: throw when uv_tty_init() returns error May 10, 2017
udp_wrap.cc src: reduce code duplication Aug 23, 2017
udp_wrap.h src: implement native changes for async_hooks May 10, 2017
util-inl.h meta: restore original copyright header Mar 10, 2017
util.cc meta: restore original copyright header Mar 10, 2017
util.h src: adjust windows abort behavior Aug 8, 2017
uv.cc uv: improvements to process.binding('uv') Aug 23, 2017
v8abbr.h src: lint v8abbr.h Jun 28, 2016
v8ustack.d dtrace: fix ustack helper for V8 5.1 Jun 29, 2016