diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-09-20 19:13:39 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-09-24 02:26:11 +0300 |
commit | c67d3d0c3caf74795871f813dbef2ec3fc196e58 (patch) | |
tree | 6a3449bf30d7f97c64810d16533cd41da098c9ee /src/async_wrap.cc | |
parent | de0441f6f677b338b78752b8fbaac767fdf35075 (diff) |
src: remove calls to SetWrapperClassId()
We have migrated from the deprecated RetainedObjectInfo API to
the new EmbedderGraph API, so there is no need to take care
of wrapper class ids anymore since they are dedicated to the
deprecated API (the new API uses a graph instead of ids to retrieve
info about nodes).
PR-URL: https://github.com/nodejs/node/pull/22975
Refs: https://github.com/nodejs/node/pull/21741
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r-- | src/async_wrap.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc index f697679399b..b04ab680870 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -556,9 +556,6 @@ AsyncWrap::AsyncWrap(Environment* env, CHECK_NE(provider, PROVIDER_NONE); CHECK_GE(object->InternalFieldCount(), 1); - // Shift provider value over to prevent id collision. - persistent().SetWrapperClassId(NODE_ASYNC_ID_OFFSET + provider_type_); - // Use AsyncReset() call to execute the init() callbacks. AsyncReset(execution_async_id, silent); } |