summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-with-abort-on-uncaught-exception.js
diff options
context:
space:
mode:
authorJason Ginchereau <jasongin@microsoft.com>2017-07-18 20:22:35 -0700
committerJason Ginchereau <jasongin@microsoft.com>2017-08-07 17:31:17 -0700
commitaf70c3b4781d8df928d183580b8075cd566ce0b5 (patch)
treee8aa823ca954220063269e47e35547de28e99c3c /test/parallel/test-domain-with-abort-on-uncaught-exception.js
parenta974753676536e239fbd937e6ffebb74c84d7cbb (diff)
downloadnode-new-af70c3b4781d8df928d183580b8075cd566ce0b5.tar.gz
n-api: optimize number API performance
- Add separate APIs for creating different kinds of numbers, because creating a V8 number value from an integer is faster than creating one from a double. - When getting number values, avoid getting the current context because the context will not actually be used and is expensive to obtain. - When creating values, don't use v8::TryCatch (NAPI_PREAMBLE), because these functions have no possibility of executing JS code. Refs: https://github.com/nodejs/node/issues/14379 PR-URL: https://github.com/nodejs/node/pull/14573 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-domain-with-abort-on-uncaught-exception.js')
0 files changed, 0 insertions, 0 deletions