Reviewed by Darin.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2006 03:48:39 +0000 (03:48 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2006 03:48:39 +0000 (03:48 +0000)
        http://bugzilla.opendarwin.org/show_bug.cgi?id=10175
        Bug 10175: [Drosera] Anonymous functions show up as "(global scope)" in stack list

        * Drosera/DebuggerDocument.m:
        (-[WebScriptObject currentFunctionStack]): If the frame has a caller it isn't the global scope.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15724 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Drosera/DebuggerDocument.m

index 37b799b65e87ecce2e6d5a3c441eb976307f970d..457223cfd75841d8dfa2f12c93c1af6dea1f2d71 100644 (file)
@@ -1,3 +1,13 @@
+2006-07-31  Mark Rowe  <opendarwin.org@bdash.net.nz>
+
+        Reviewed by Darin.
+
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=10175
+        Bug 10175: [Drosera] Anonymous functions show up as "(global scope)" in stack list
+
+        * Drosera/DebuggerDocument.m:
+        (-[WebScriptObject currentFunctionStack]): If the frame has a caller it isn't the global scope.
+
 2006-07-31  Mark Rowe  <opendarwin.org@bdash.net.nz>
 
         Reviewed by Darin.
index 003f3a67f1e3b03eb3dfc56cf3bcb42f7a621ee9..a0dae56ee2b124fd5cc80c24c32674dde10dc222 100644 (file)
@@ -87,6 +87,8 @@ static NSString *DebuggerStepOutToolbarItem = @"DebuggerStepOutToolbarItem";
     while (frame) {
         if ([frame functionName])
             [result addObject:[frame functionName]];
+        else if ([frame caller])
+            [result addObject:@"(anonymous function)"];
         else
             [result addObject:@"(global scope)"];
         frame = [frame caller];