RESOLVED FIXED 161891
Web Inspector: Should be able to pretty print module code (import / export statements)
https://bugs.webkit.org/show_bug.cgi?id=161891
Summary Web Inspector: Should be able to pretty print module code (import / export st...
Joseph Pecoraro
Reported 2016-09-12 20:43:51 PDT
Summary: Should be able to pretty print module code (import / export statements). In preparation for module tags. The pretty printer should be able to handle import / export statements. Notes - Esprima has two different parse modes. "script" or "module" based on the "sourceType" option. - The Formatting tool should be updated to test this.
Attachments
[PATCH] Proposed Fix (24.42 KB, patch)
2016-09-12 20:50 PDT, Joseph Pecoraro
ysuzuki: review+
[PATCH] For Landing (24.45 KB, patch)
2016-09-13 11:25 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-09-12 20:44:08 PDT
Joseph Pecoraro
Comment 2 2016-09-12 20:50:32 PDT
Created attachment 288666 [details] [PATCH] Proposed Fix
Yusuke Suzuki
Comment 3 2016-09-12 21:25:30 PDT
Comment on attachment 288666 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=288666&action=review Nice! r=me. > LayoutTests/inspector/formatting/resources/javascript-tests/modules-expected.js:19 > + y = 1; We can perform destructuring here :) `export let { x, y, z } = obj` `export let [x, y, z ] = array`
Joseph Pecoraro
Comment 4 2016-09-13 11:25:20 PDT
Created attachment 288706 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 5 2016-09-13 11:39:18 PDT
Comment on attachment 288706 [details] [PATCH] For Landing Clearing flags on attachment: 288706 Committed r205866: <http://trac.webkit.org/changeset/205866>
Note You need to log in before you can comment on or make changes to this bug.