commonjs: fix parenthesizes destructuring pattern assignment targets

This commit is contained in:
2021-03-01 23:52:31 +08:00
parent 43d0e566ce
commit 3f0d8da0be
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ function display(panel, options, anchor) {
let viewportRect = document.defaultView.gBrowser.getBoundingClientRect();
({x, y, width, height}) = calculateRegion(options, viewportRect);
({x, y, width, height} = calculateRegion(options, viewportRect));
}
else {
// The XUL Panel has an arrow, so the margin needs to be reset
@@ -145,7 +145,7 @@ function display(panel, options, anchor) {
// chrome browser window, and therefore there is no need for this check.
if (CustomizableUI) {
let node = anchor;
({anchor}) = CustomizableUI.getWidget(anchor.id).forWindow(window);
({anchor} = CustomizableUI.getWidget(anchor.id).forWindow(window));
// if `node` is not the `anchor` itself, it means the widget is
// positioned in a panel, therefore we have to hide it before show
+1 -1
View File
@@ -245,7 +245,7 @@ const map = (f, ...sequences) => seq(function* () {
let index = 0;
let value = void(0);
while (index < count && !done) {
({ done, value }) = inputs[index].next();
({ done, value } = inputs[index].next());
// If input is not exhausted yet store value in args.
if (!done) {