| Index: WebCore/bindings/v8/V8Utilities.cpp
|
| ===================================================================
|
| --- WebCore/bindings/v8/V8Utilities.cpp (revision 24197)
|
| +++ WebCore/bindings/v8/V8Utilities.cpp (working copy)
|
| @@ -58,7 +58,8 @@
|
| void removeHiddenDependency(v8::Local<v8::Object> object, v8::Local<v8::Value> value, int cacheIndex)
|
| {
|
| v8::Local<v8::Value> cache = object->GetInternalField(cacheIndex);
|
| - ASSERT(cache->IsArray());
|
| + if (!cache->IsArray())
|
| + return;
|
| v8::Local<v8::Array> cacheArray = v8::Local<v8::Array>::Cast(cache);
|
| for (int i = cacheArray->Length() - 1; i >= 0; --i) {
|
| v8::Local<v8::Value> cached = cacheArray->Get(v8::Integer::New(i));
|
| @@ -67,9 +68,6 @@
|
| return;
|
| }
|
| }
|
| -
|
| - // We should only get here if we try to remove an event listener that was never added.
|
| - ASSERT_NOT_REACHED();
|
| }
|
|
|
| bool processingUserGesture()
|
|
|