Title: [245836] trunk/Tools
- Revision
- 245836
- Author
- [email protected]
- Date
- 2019-05-28 18:05:45 -0700 (Tue, 28 May 2019)
Log Message
GCHeapInspector should accept weird filename
https://bugs.webkit.org/show_bug.cgi?id=198314
Reviewed by Simon Fraser.
GCHeapInspector filenameForPath should have a fallback path if regexp does not match against the given path.
* GCHeapInspector/script/interface.js:
(filenameForPath):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (245835 => 245836)
--- trunk/Tools/ChangeLog 2019-05-29 00:34:54 UTC (rev 245835)
+++ trunk/Tools/ChangeLog 2019-05-29 01:05:45 UTC (rev 245836)
@@ -1,3 +1,15 @@
+2019-05-28 Yusuke Suzuki <[email protected]>
+
+ GCHeapInspector should accept weird filename
+ https://bugs.webkit.org/show_bug.cgi?id=198314
+
+ Reviewed by Simon Fraser.
+
+ GCHeapInspector filenameForPath should have a fallback path if regexp does not match against the given path.
+
+ * GCHeapInspector/script/interface.js:
+ (filenameForPath):
+
2019-05-28 Eric Carlson <[email protected]>
[MacOS] Filter GVA warning logged to stdout
Modified: trunk/Tools/GCHeapInspector/script/interface.js (245835 => 245836)
--- trunk/Tools/GCHeapInspector/script/interface.js 2019-05-29 00:34:54 UTC (rev 245835)
+++ trunk/Tools/GCHeapInspector/script/interface.js 2019-05-29 01:05:45 UTC (rev 245836)
@@ -446,7 +446,10 @@
function filenameForPath(filepath)
{
- return filepath.match(/([^\/]+)(?=\.\w+$)/)[0];
+ var matched = filepath.match(/([^\/]+)(?=\.\w+$)/);
+ if (matched)
+ return matched[0];
+ return filepath;
}
function hideDescription()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes