diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-01 16:05:53 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-02 12:13:46 +0400 |
commit | 5e57bcc3cee41a666f05e5e4ffd1b76e18b66282 (patch) | |
tree | 40272f5a03eb79530dd5c0210a99d22bdddf1ccd /src/node_internals.h | |
parent | 7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a (diff) | |
download | android-node-v8-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.tar.gz android-node-v8-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.tar.bz2 android-node-v8-5e57bcc3cee41a666f05e5e4ffd1b76e18b66282.zip |
bindings: update to new v8 apis
GetPointerFromInternalField() is deprecated now, we should use
GetAlignedPointerFromInternalField().
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 80aa4e5366..49ab316fc9 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -86,8 +86,8 @@ inline static v8::Handle<v8::Value> ThrowRangeError(const char* errmsg) { #define UNWRAP(type) \ assert(!args.Holder().IsEmpty()); \ assert(args.Holder()->InternalFieldCount() > 0); \ - type* wrap = \ - static_cast<type*>(args.Holder()->GetPointerFromInternalField(0)); \ + type* wrap = static_cast<type*>( \ + args.Holder()->GetAlignedPointerFromInternalField(0)); \ if (!wrap) { \ fprintf(stderr, #type ": Aborting due to unwrap failure at %s:%d\n", \ __FILE__, __LINE__); \ |