RESOLVED FIXED 164900
Web Inspector: Add ability to distinguish if a Script was parsed as a module
https://bugs.webkit.org/show_bug.cgi?id=164900
Summary Web Inspector: Add ability to distinguish if a Script was parsed as a module
Joseph Pecoraro
Reported 2016-11-17 17:21:34 PST
Summary: Add ability to distinguish if a Script was parsed as a module For starters we can use this for Esprima related features: - pretty print module code - enable type profiler and code coverage profilers in module code Where "module code" consists of <script type="module"> and transitively imported modules. Eventually we may want to use this information for other reasons.
Attachments
[PATCH] Proposed Fix (33.65 KB, patch)
2016-11-17 19:26 PST, Joseph Pecoraro
timothy: review+
joepeck: commit-queue-
[IMAGE] Module Code with Type Profiler (80.25 KB, image/png)
2016-11-17 19:28 PST, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-11-17 17:21:49 PST
Joseph Pecoraro
Comment 2 2016-11-17 19:26:46 PST
Created attachment 295123 [details] [PATCH] Proposed Fix This may not actually depend on the updated Esprima, but it was created from a tree that had it applied so it may not apply otherwise.
Joseph Pecoraro
Comment 3 2016-11-17 19:28:04 PST
Created attachment 295124 [details] [IMAGE] Module Code with Type Profiler
Joseph Pecoraro
Comment 4 2016-12-07 16:05:19 PST
Note You need to log in before you can comment on or make changes to this bug.