async_wrap: ensure all objects have internal field
authorTrevor Norris <trev.norris@gmail.com>
Wed, 30 Sep 2015 21:55:06 +0000 (15:55 -0600)
committerRod Vagg <rod@vagg.org>
Fri, 2 Oct 2015 03:39:26 +0000 (13:39 +1000)
commit39b8730e8b0e5d71e38a5cd6512ddc30a1849e7c
treef28c1972538bf23f2ff78a2d5bd4d60efb5f2f86
parent99e66074d7f1d2ccc920d38093e84ba6f8b4a327
async_wrap: ensure all objects have internal field

If the constructor can't assign a class id then the heap snapshot will
not be able to report the object. So ensure that all AsyncWrap instances
use a FunctionTemplate instance with an internal field count >= 1.

PR-URL: https://github.com/nodejs/node/pull/3139
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Stephen Belanger <admin@stephenbelanger.com>
lib/dns.js
src/async-wrap-inl.h
src/cares_wrap.cc
src/env-inl.h
src/env.h
src/node_crypto.cc