summaryrefslogtreecommitdiff
path: root/src/node_api_types.h
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2018-07-06 10:47:48 -0400
committerGabriel Schulhof <gabriel.schulhof@intel.com>2018-07-09 11:44:37 -0400
commit978d89f5e3cf238a0e42303acc9493993ede9c98 (patch)
treeaa891f503e98073be4b760622237eb44fa286edc /src/node_api_types.h
parenta478259af7671fa2794aa030f7790a9d9772be5e (diff)
downloadandroid-node-v8-978d89f5e3cf238a0e42303acc9493993ede9c98.tar.gz
android-node-v8-978d89f5e3cf238a0e42303acc9493993ede9c98.tar.bz2
android-node-v8-978d89f5e3cf238a0e42303acc9493993ede9c98.zip
n-api: create functions directly
Avoid using `v8::FunctionTemplate::New()` when using `v8::Function::New()` suffices. This ensures that individual functions can be gc-ed and that functions can be created dynamically without running out of memory. PR-URL: https://github.com/nodejs/node/pull/21688 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Kyle Farnung <kfarnung@microsoft.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node_api_types.h')
0 files changed, 0 insertions, 0 deletions