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
+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.
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];