Chromium Code Reviews| Index: webkit/port/bindings/v8/v8_proxy.cpp |
| =================================================================== |
| --- webkit/port/bindings/v8/v8_proxy.cpp (revision 10179) |
| +++ webkit/port/bindings/v8/v8_proxy.cpp (working copy) |
| @@ -3474,7 +3474,11 @@ |
| if (frame_source_line.IsEmpty()) { |
| return 0; |
| } |
| - return v8::Debug::Call(frame_source_line)->Int32Value(); |
| + v8::Handle<v8::Value> result = v8::Debug::Call(frame_source_line); |
| + if (result.IsEmpty()) { |
| + return 0; |
| + } |
| + return result->Int32Value(); |
| } |