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.
<rdar://problem/28272784>
Created attachment 288666 [details] [PATCH] Proposed Fix
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`
Created attachment 288706 [details] [PATCH] For Landing
Comment on attachment 288706 [details] [PATCH] For Landing Clearing flags on attachment: 288706 Committed r205866: <http://trac.webkit.org/changeset/205866>