summaryrefslogtreecommitdiff
path: root/src/node_object_wrap.h
diff options
context:
space:
mode:
authorScott Blomquist <sblom@microsoft.com>2013-10-29 11:43:31 -0700
committerTrevor Norris <trev.norris@gmail.com>2013-10-29 14:53:03 -0700
commit7a7101ac9b5fc34115ba3db278a503b96dcd4a8b (patch)
treed364985077cfe9dfcbaa9d8da857466215776345 /src/node_object_wrap.h
parentc137e3d2492160433a78a5d453b8768a7a106864 (diff)
downloadandroid-node-v8-7a7101ac9b5fc34115ba3db278a503b96dcd4a8b.tar.gz
android-node-v8-7a7101ac9b5fc34115ba3db278a503b96dcd4a8b.tar.bz2
android-node-v8-7a7101ac9b5fc34115ba3db278a503b96dcd4a8b.zip
win: fix ObjectWrap for latest v8
We need to keep ObjectWrap around for module authors (we think), but v8 3.21 broke node_object_wrap.h with respect to MSVC. Coincidentally, we no longer use ObjectWrap at all in core, and native modules might as well use their own entirely internal implementation if they need it.
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r--src/node_object_wrap.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h
index 538af3520d..d387a2679c 100644
--- a/src/node_object_wrap.h
+++ b/src/node_object_wrap.h
@@ -22,22 +22,13 @@
#ifndef SRC_NODE_OBJECT_WRAP_H_
#define SRC_NODE_OBJECT_WRAP_H_
-#include "node.h"
#include "v8.h"
#include <assert.h>
-// Explicitly instantiate some template classes, so we're sure they will be
-// present in the binary / shared object. There isn't much doubt that they will
-// be, but MSVC tends to complain about these things.
-#ifdef _MSC_VER
- template class NODE_EXTERN v8::Persistent<v8::Object>;
- template class NODE_EXTERN v8::Persistent<v8::FunctionTemplate>;
-#endif
-
namespace node {
-class NODE_EXTERN ObjectWrap {
+class ObjectWrap {
public:
ObjectWrap() {
refs_ = 0;