summaryrefslogtreecommitdiff
path: root/test/cctest
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2017-03-31 16:40:33 +0300
committerMichael Dawson <michael_dawson@ca.ibm.com>2017-04-07 18:39:08 -0400
commit8fbace163afbd61b5efc57cf94414be904bf0188 (patch)
tree3c4145cdda3115ba48471c2a8aee3f932e3d63a2 /test/cctest
parentca8ccb917637a1b54b49419e7392099ac1bfb929 (diff)
downloadandroid-node-v8-8fbace163afbd61b5efc57cf94414be904bf0188.tar.gz
android-node-v8-8fbace163afbd61b5efc57cf94414be904bf0188.tar.bz2
android-node-v8-8fbace163afbd61b5efc57cf94414be904bf0188.zip
n-api: cache Symbol.hasInstance
This improves the performance of napi_instanceof() by retrieving Symbol.hasInstance from the global object once and then storing a persistent reference to it in the env. PR-URL: https://github.com/nodejs/node/pull/12246 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/cctest')
0 files changed, 0 insertions, 0 deletions