Title: [191779] trunk/Source/_javascript_Core
Revision
191779
Author
[email protected]
Date
2015-10-29 23:00:17 -0700 (Thu, 29 Oct 2015)

Log Message

Web Inspector: Do not show _javascript_Core builtins in inspector
https://bugs.webkit.org/show_bug.cgi?id=146049

Patch by Joseph Pecoraro <[email protected]> on 2015-10-29
Reviewed by Geoffrey Garen.

* debugger/Debugger.cpp:
When gathering scripts to notify the inspector / debuggers about
skip over sources containing host / built-in functions as those
for those won't contain source code developers expect to see.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (191778 => 191779)


--- trunk/Source/_javascript_Core/ChangeLog	2015-10-30 05:47:21 UTC (rev 191778)
+++ trunk/Source/_javascript_Core/ChangeLog	2015-10-30 06:00:17 UTC (rev 191779)
@@ -1,5 +1,17 @@
 2015-10-29  Joseph Pecoraro  <[email protected]>
 
+        Web Inspector: Do not show _javascript_Core builtins in inspector
+        https://bugs.webkit.org/show_bug.cgi?id=146049
+
+        Reviewed by Geoffrey Garen.
+
+        * debugger/Debugger.cpp:
+        When gathering scripts to notify the inspector / debuggers about
+        skip over sources containing host / built-in functions as those
+        for those won't contain source code developers expect to see.
+
+2015-10-29  Joseph Pecoraro  <[email protected]>
+
         Fix typo in "use strict" in TypedArray builtins
         https://bugs.webkit.org/show_bug.cgi?id=150709
 

Modified: trunk/Source/_javascript_Core/debugger/Debugger.cpp (191778 => 191779)


--- trunk/Source/_javascript_Core/debugger/Debugger.cpp	2015-10-30 05:47:21 UTC (rev 191778)
+++ trunk/Source/_javascript_Core/debugger/Debugger.cpp	2015-10-30 06:00:17 UTC (rev 191779)
@@ -58,6 +58,9 @@
         if (!function->executable()->isFunctionExecutable())
             return IterationStatus::Continue;
 
+        if (function->isHostOrBuiltinFunction())
+            return IterationStatus::Continue;
+
         sourceProviders.add(
             jsCast<FunctionExecutable*>(function->executable())->source().provider());
         return IterationStatus::Continue;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to