summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2023-04-06 02:24:48 +0200
committerGitHub <noreply@github.com>2023-04-06 00:24:48 +0000
commit5c86f223aec046d6dd37b5ff22907e30be7315ee (patch)
treeee5a9cd2ad501b182b847596f96730775314771e /deps
parentd1eaeecc8b86d501ed180e4e43dc77028f6bbf05 (diff)
downloadnode-new-5c86f223aec046d6dd37b5ff22907e30be7315ee.tar.gz
src: use the internal field to determine if an object is a BaseObject
Instead of storing the function template of BaseObject for checking if an object is BaseObject by calling HasInstance, simply checks the first internal field of the object, which is always set in the BaseObject constructor. This is simpler and faster (there is now no need to iterate over the inheritance for the check). PR-URL: https://github.com/nodejs/node/pull/47217 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Diffstat (limited to 'deps')
0 files changed, 0 insertions, 0 deletions