| Index: src/handles.cc
|
| diff --git a/src/handles.cc b/src/handles.cc
|
| index 7a8d5c90bc5fa97ac289a600ebe0cfc68b243906..505af3d68e8597de89e683d64435e491e27650c9 100644
|
| --- a/src/handles.cc
|
| +++ b/src/handles.cc
|
| @@ -345,9 +345,9 @@ Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) {
|
| // associated with the wrapper and get rid of both the wrapper and the
|
| // handle.
|
| static void ClearWrapperCache(v8::Isolate* v8_isolate,
|
| - Persistent<v8::Value> handle,
|
| + Persistent<v8::Value>* handle,
|
| void*) {
|
| - Handle<Object> cache = Utils::OpenHandle(*handle);
|
| + Handle<Object> cache = Utils::OpenHandle(**handle);
|
| JSValue* wrapper = JSValue::cast(*cache);
|
| Foreign* foreign = Script::cast(wrapper->value())->wrapper();
|
| ASSERT(foreign->foreign_address() ==
|
| @@ -388,7 +388,6 @@ Handle<JSValue> GetScriptWrapper(Handle<Script> script) {
|
| Handle<Object> handle = isolate->global_handles()->Create(*result);
|
| isolate->global_handles()->MakeWeak(handle.location(),
|
| NULL,
|
| - NULL,
|
| &ClearWrapperCache);
|
| script->wrapper()->set_foreign_address(
|
| reinterpret_cast<Address>(handle.location()));
|
|
|