Bug 1573582 - Fix syntax highlighting for commands.js. r=yulia
authorJason Laster <jlaster@mozilla.com>
Wed, 14 Aug 2019 08:02:07 +0000
changeset 488100 405b6f21b6405b3e5bc0b85a2a5de51d619f1a35
parent 488099 6c4665fb2c103b1a0253791f66d7f9ec6ff691f6
child 488101 6e86ec2e3a21791238aa7f0108c0aabecc6a3e15
push id113900
push usercbrindusan@mozilla.com
push dateThu, 15 Aug 2019 09:53:50 +0000
treeherdermozilla-inbound@0db07ff50ab5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyulia
bugs1573582
milestone70.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
Bug 1573582 - Fix syntax highlighting for commands.js. r=yulia Differential Revision: https://phabricator.services.mozilla.com/D41786
devtools/client/debugger/src/client/firefox/commands.js
--- a/devtools/client/debugger/src/client/firefox/commands.js
+++ b/devtools/client/debugger/src/client/firefox/commands.js
@@ -179,17 +179,18 @@ function removeXHRBreakpoint(path: strin
   return threadFront.removeXHRBreakpoint(path, method);
 }
 
 // Get the string key to use for a breakpoint location.
 // See also duplicate code in breakpoint-actor-map.js :(
 function locationKey(location: BreakpointLocation) {
   const { sourceUrl, line, column } = location;
   const sourceId = location.sourceId || "";
-  return `${(sourceUrl: any)}:${(sourceId: any)}:${line}:${(column: any)}`;
+  // $FlowIgnore
+  return `${sourceUrl}:${sourceId}:${line}:${column}`;
 }
 
 function detachWorkers() {
   for (const thread of listWorkerThreadFronts()) {
     thread.detach();
   }
 }