diff options
author | Trevor Norris <trev.norris@gmail.com> | 2015-05-18 16:39:53 -0600 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2015-05-19 09:36:36 -0600 |
commit | 3c44100558b4e9e48e0e711e38acc91e0f870a9f (patch) | |
tree | 9fc6588db08a1e63879f2a12d85f054ad22d12bf /src/async-wrap-inl.h | |
parent | 0d6d3dda95e3fff30996c224197fac88fba85b5b (diff) | |
download | android-node-v8-3c44100558b4e9e48e0e711e38acc91e0f870a9f.tar.gz android-node-v8-3c44100558b4e9e48e0e711e38acc91e0f870a9f.tar.bz2 android-node-v8-3c44100558b4e9e48e0e711e38acc91e0f870a9f.zip |
core: set PROVIDER type as Persistent class id
Pass along the PROVIDER type, that is already passed to AsyncWrap, along
to BaseObject to set the handle_'s class id. This will allow all
Persistents to be transversed and uniquely identified by what type they
are using APIs such as v8::PersistentHandleVisitor.
PR-URL: https://github.com/nodejs/io.js/pull/1730
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/async-wrap-inl.h')
-rw-r--r-- | src/async-wrap-inl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/async-wrap-inl.h b/src/async-wrap-inl.h index bad634ddaf..0518cd3b7c 100644 --- a/src/async-wrap-inl.h +++ b/src/async-wrap-inl.h @@ -17,7 +17,8 @@ inline AsyncWrap::AsyncWrap(Environment* env, v8::Handle<v8::Object> object, ProviderType provider, AsyncWrap* parent) - : BaseObject(env, object), bits_(static_cast<uint32_t>(provider) << 1) { + : BaseObject(env, object, provider), + bits_(static_cast<uint32_t>(provider) << 1) { // Check user controlled flag to see if the init callback should run. if (!env->using_asyncwrap()) return; |