diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2023-04-06 02:24:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 00:24:48 +0000 |
commit | 5c86f223aec046d6dd37b5ff22907e30be7315ee (patch) | |
tree | ee5a9cd2ad501b182b847596f96730775314771e /deps | |
parent | d1eaeecc8b86d501ed180e4e43dc77028f6bbf05 (diff) | |
download | node-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