Index: test/cctest/test-decls.cc |
=================================================================== |
--- test/cctest/test-decls.cc (revision 2706) |
+++ test/cctest/test-decls.cc (working copy) |
@@ -111,7 +111,7 @@ |
if (is_initialized_) return; |
HandleScope scope; |
Local<FunctionTemplate> function = FunctionTemplate::New(); |
- Local<Value> data = Integer::New(reinterpret_cast<intptr_t>(this)); |
+ Local<Value> data = External::New(this); |
GetHolder(function)->SetNamedPropertyHandler(&HandleGet, |
&HandleSet, |
&HandleHas, |
@@ -179,8 +179,7 @@ |
DeclarationContext* DeclarationContext::GetInstance(const AccessorInfo& info) { |
- Local<Value> data = info.Data(); |
- return reinterpret_cast<DeclarationContext*>(Int32::Cast(*data)->Value()); |
+ return static_cast<DeclarationContext*>(External::Unwrap(info.Data())); |
} |