Copy individual symbols and comments for Closure
Closure was unhappy with the `Object.assign` solution. Instead, use individual assignments and add the relevant comments, so that Closure can understand what is going on. Sample output: ``` /*Legacy exported object*/ self.UI = self.UI || {}; /*Legacy exported object*/ UI = UI || {}; //TODO(http://crbug.com/1006759): Add type information if necessary UI.TextEditor = TextEditor; //TODO(http://crbug.com/1006759): Add type information if necessary UI.TextEditor.prototype = prototype; /** @enum {symbol} */ UI.TextEditor.Events = Events; ``` Bug: 1006759 Change-Id: Ib0e571cc027f544b316a3e3ccf8c3d606273d887 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1819248Reviewed-by:Yang Guo <yangguo@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org> Cr-Commit-Position: refs/heads/master@{#698878}
Showing
Please register or sign in to comment