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
This commit is contained in:
parent
609ed28111
commit
740bfa5dd0
@ -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_)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user