summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-03-18 13:54:00 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-20 01:11:01 +0100
commit0bba59028381c146b90411d43425a18415d85f98 (patch)
tree173ffbc09c11ed471c17b6f7609cc89fb26e2755 /src/handle_wrap.h
parent06bec0e08737ee6c3e165ec6dd16b54ffe1b4c91 (diff)
downloadandroid-node-v8-0bba59028381c146b90411d43425a18415d85f98.tar.gz
android-node-v8-0bba59028381c146b90411d43425a18415d85f98.tar.bz2
android-node-v8-0bba59028381c146b90411d43425a18415d85f98.zip
bindings: update api
All compile time warnings about using deprecated APIs have been suppressed by updating node's API. Though there are still many function calls that can accept Isolate, and still need to be updated. node_isolate had to be added as an extern variable in node.h and node_object_wrap.h Also a couple small fixes for Error handling. Before v8 3.16.6 the error stack message was lazily written when it was needed, which allowed you to change the message after instantiation. Then the stack would be written with the new message the first time it was accessed. Though that has changed. Now it creates the stack message on instantiation. So setting a different message afterwards won't be displayed. This is not a complete fix for the problem. Getting error without any message isn't very useful.
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r--src/handle_wrap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h
index dbefc2a114..7c88a61d87 100644
--- a/src/handle_wrap.h
+++ b/src/handle_wrap.h
@@ -50,7 +50,7 @@ namespace node {
assert(!args.Holder().IsEmpty()); \
assert(args.Holder()->InternalFieldCount() > 0); \
type* wrap = static_cast<type*>( \
- args.Holder()->GetPointerFromInternalField(0));
+ args.Holder()->GetAlignedPointerFromInternalField(0));
class HandleWrap {
public: