Index: test/cctest/test-decls.cc |
diff --git a/test/cctest/test-decls.cc b/test/cctest/test-decls.cc |
index 6fc601213c67bc32e268a10493e442b102b373e8..e398cbb307559450d88b9c34c970ee94bc87d969 100644 |
--- a/test/cctest/test-decls.cc |
+++ b/test/cctest/test-decls.cc |
@@ -190,7 +190,8 @@ v8::Handle<Integer> DeclarationContext::HandleQuery(Local<String> key, |
DeclarationContext* DeclarationContext::GetInstance(const AccessorInfo& info) { |
- return static_cast<DeclarationContext*>(External::Unwrap(info.Data())); |
+ void* value = External::Cast(*info.Data())->Value(); |
+ return static_cast<DeclarationContext*>(value); |
} |