Index: Source/bindings/core/v8/ScriptProfiler.cpp |
diff --git a/Source/bindings/core/v8/ScriptProfiler.cpp b/Source/bindings/core/v8/ScriptProfiler.cpp |
index 5cce52da41e52ce401de7d9bf2f9b03211d1e319..7db431217e51ba7cc18291a631040d1bee581414 100644 |
--- a/Source/bindings/core/v8/ScriptProfiler.cpp |
+++ b/Source/bindings/core/v8/ScriptProfiler.cpp |
@@ -166,7 +166,7 @@ class GlobalObjectNameResolver final : public v8::HeapProfiler::ObjectNameResolv |
public: |
virtual const char* GetName(v8::Handle<v8::Object> object) override |
{ |
- DOMWindow* window = toDOMWindow(object, v8::Isolate::GetCurrent()); |
+ DOMWindow* window = toDOMWindow(v8::Isolate::GetCurrent(), object); |
if (!window) |
return 0; |
CString url = toLocalDOMWindow(window)->document()->url().string().utf8(); |