| Index: Source/bindings/core/v8/NPV8Object.cpp
|
| diff --git a/Source/bindings/core/v8/NPV8Object.cpp b/Source/bindings/core/v8/NPV8Object.cpp
|
| index dfef2fc9d7b3dd4cb63fe33c4fc4fb245c9f740b..e3bd7cf4259d1aa7c47cba76e68c905b2ff93e84 100644
|
| --- a/Source/bindings/core/v8/NPV8Object.cpp
|
| +++ b/Source/bindings/core/v8/NPV8Object.cpp
|
| @@ -555,8 +555,9 @@ bool _NPN_Enumerate(NPP npp, NPObject* npObject, NPIdentifier** identifier, uint
|
| " return props;"
|
| "});";
|
| v8::Handle<v8::String> source = v8AtomicString(isolate, enumeratorCode);
|
| - v8::Handle<v8::Value> result = V8ScriptRunner::compileAndRunInternalScript(source, isolate);
|
| - ASSERT(!result.IsEmpty());
|
| + v8::Local<v8::Value> result;
|
| + if (!V8ScriptRunner::compileAndRunInternalScript(source, isolate).ToLocal(&result))
|
| + return false;
|
| ASSERT(result->IsFunction());
|
| v8::Handle<v8::Function> enumerator = v8::Handle<v8::Function>::Cast(result);
|
| v8::Handle<v8::Value> argv[] = { obj };
|
|
|