No bug - Fix debugger eslint issues.
authorJason Laster <jlaster@mozilla.com>
Fri, 08 Mar 2019 14:36:03 +0000
changeset 521042 8413368a95eb4e62c945d968e116c10878a26a32
parent 521041 42193ad4cde738d99a07cbf997bae2ca120c0087
child 521043 1d82c648684d7b596d0b1cb103a3bd15443d322d
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
No bug - Fix debugger eslint issues. Differential Revision: https://phabricator.services.mozilla.com/D22706
devtools/client/debugger/new/src/client/firefox/commands.js
devtools/client/debugger/new/src/components/Editor/Preview/index.js
--- a/devtools/client/debugger/new/src/client/firefox/commands.js
+++ b/devtools/client/debugger/new/src/client/firefox/commands.js
@@ -68,17 +68,17 @@ function releaseActor(actor: String) {
   if (!actor) {
     return;
   }
 
   return debuggerClient.release(actor);
 }
 
 function sendPacket(packet: Object) {
-  return debuggerClient.request(packet)
+  return debuggerClient.request(packet);
 }
 
 function lookupThreadClient(thread: string) {
   if (thread == threadClient.actor) {
     return threadClient;
   }
   if (!workerClients[thread]) {
     throw new Error(`Unknown thread client: ${thread}`);
--- a/devtools/client/debugger/new/src/components/Editor/Preview/index.js
+++ b/devtools/client/debugger/new/src/components/Editor/Preview/index.js
@@ -46,21 +46,20 @@ function inPopup(e) {
     relatedTarget.classList.contains("debug-expression");
 
   return pop;
 }
 
 function getElementFromPos(pos: DOMRect) {
   // We need to use element*s*AtPoint because the tooltip overlays
   // the token and thus an undesirable element may be returned
-  // $FlowIgnore
-  const elementsAtPoint = [...document.elementsFromPoint(
-    pos.x + pos.width / 2,
-    pos.y + pos.height / 2
-  )];
+  const elementsAtPoint = [
+    // $FlowIgnore
+    ...document.elementsFromPoint(pos.x + pos.width / 2, pos.y + pos.height / 2)
+  ];
 
   return elementsAtPoint.find(el => el.className.startsWith("cm-"));
 }
 
 class Preview extends PureComponent<Props, State> {
   target = null;
   constructor(props) {
     super(props);