Chromium Code Reviews| Index: src/profile-generator.cc |
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
| index ca19f4aaaffea68b8a12e0764086bfa09ec5e06a..71725cca357d4e935144f78679b24eae4f65bd80 100644 |
| --- a/src/profile-generator.cc |
| +++ b/src/profile-generator.cc |
| @@ -2692,6 +2692,10 @@ void V8HeapExplorer::TagGlobalObjects() { |
| Object* obj_document; |
| if (global_obj->GetProperty(*document_string)->ToObject(&obj_document) && |
| obj_document->IsJSObject()) { |
| + // FixMe: Workarround: SharedWorker's current Isolate has NULL context. |
|
Yang
2012/06/14 10:43:59
typo "workaround".
|
| + // As result GetProperty(*url_string) will crash. |
| + if (!Isolate::Current()->context() && obj_document->IsJSGlobalProxy()) |
| + continue; |
| JSObject* document = JSObject::cast(obj_document); |
| Object* obj_url; |
| if (document->GetProperty(*url_string)->ToObject(&obj_url) && |