Commit 740bfa5d authored by dcarney@chromium.org's avatar dcarney@chromium.org

fix eternal casts

R=svenpanne@chromium.org
BUG=

Review URL: https://codereview.chromium.org/23532017

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16442 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 609ed281
......@@ -5578,13 +5578,13 @@ template<class T>
template<class S>
void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
TYPE_CHECK(T, S);
V8::Eternalize(isolate, Value::Cast(*handle), &this->index_);
V8::Eternalize(isolate, reinterpret_cast<Value*>(*handle), &this->index_);
}
template<class T>
Local<T> Eternal<T>::Get(Isolate* isolate) {
return Local<T>::Cast(V8::GetEternal(isolate, index_));
return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment