Bug 1527122 - [release 125] sync 124. r=dwalsh
authorJason Laster <jlaster@mozilla.com>
Mon, 11 Feb 2019 16:59:21 -0800
changeset 458678 01c2f5e1c6db
parent 458677 1d241f19a409
child 458679 b953067ffeaf
push id35544
push userccoroiu@mozilla.com
push dateTue, 12 Feb 2019 16:29:08 +0000
treeherdermozilla-central@c849fb69e2e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwalsh
bugs1527122
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
Bug 1527122 - [release 125] sync 124. r=dwalsh
devtools/client/debugger/new/packages/devtools-source-map/src/index.js
devtools/client/shared/source-map/index.js
--- a/devtools/client/debugger/new/packages/devtools-source-map/src/index.js
+++ b/devtools/client/debugger/new/packages/devtools-source-map/src/index.js
@@ -13,19 +13,22 @@ import type { SourceMapConsumer } from "
 import type { locationOptions } from "./source-map";
 
 export const dispatcher = new WorkerDispatcher();
 
 const _getGeneratedRanges = dispatcher.task("getGeneratedRanges", {
   queue: true
 });
 
-const _getGeneratedLocation = dispatcher.task("getGeneratedLocation", { queue: true });
-const _getAllGeneratedLocations = dispatcher.task("getAllGeneratedLocations", { queue: true });
-
+const _getGeneratedLocation = dispatcher.task("getGeneratedLocation", {
+  queue: true
+});
+const _getAllGeneratedLocations = dispatcher.task("getAllGeneratedLocations", {
+  queue: true
+});
 
 export const setAssetRootURL = async (assetRoot: string): Promise<void> =>
   dispatcher.invoke("setAssetRootURL", assetRoot);
 
 export const getOriginalURLs = async (
   generatedSource: Source
 ): Promise<SourceMapConsumer> =>
   dispatcher.invoke("getOriginalURLs", generatedSource);
@@ -47,31 +50,28 @@ export const getGeneratedRanges = async 
   location: SourceLocation,
   originalSource: Source
 ): Promise<
   Array<{
     line: number,
     columnStart: number,
     columnEnd: number
   }>
-> =>
-  _getGeneratedRanges(location, originalSource);
+> => _getGeneratedRanges(location, originalSource);
 
 export const getGeneratedLocation = async (
   location: SourceLocation,
   originalSource: Source
-): Promise<SourceLocation> => _getGeneratedLocation(location,originalSource);
+): Promise<SourceLocation> => _getGeneratedLocation(location, originalSource);
 
 export const getAllGeneratedLocations = async (
   location: SourceLocation,
   originalSource: Source
-): Promise<Array<SourceLocation>> => _getAllGeneratedLocations(
-  location,
-  originalSource
-);
+): Promise<Array<SourceLocation>> =>
+  _getAllGeneratedLocations(location, originalSource);
 
 export const getOriginalLocation = async (
   location: SourceLocation,
   options: locationOptions = {}
 ): Promise<SourceLocation> =>
   dispatcher.invoke("getOriginalLocation", location, options);
 
 export const getFileGeneratedRange = async (
--- a/devtools/client/shared/source-map/index.js
+++ b/devtools/client/shared/source-map/index.js
@@ -466,18 +466,22 @@ const {
 } = __webpack_require__(3651);
 
 const dispatcher = exports.dispatcher = new WorkerDispatcher();
 
 const _getGeneratedRanges = dispatcher.task("getGeneratedRanges", {
   queue: true
 });
 
-const _getGeneratedLocation = dispatcher.task("getGeneratedLocation", { queue: true });
-const _getAllGeneratedLocations = dispatcher.task("getAllGeneratedLocations", { queue: true });
+const _getGeneratedLocation = dispatcher.task("getGeneratedLocation", {
+  queue: true
+});
+const _getAllGeneratedLocations = dispatcher.task("getAllGeneratedLocations", {
+  queue: true
+});
 
 const setAssetRootURL = exports.setAssetRootURL = async assetRoot => dispatcher.invoke("setAssetRootURL", assetRoot);
 
 const getOriginalURLs = exports.getOriginalURLs = async generatedSource => dispatcher.invoke("getOriginalURLs", generatedSource);
 
 const hasOriginalURL = exports.hasOriginalURL = async url => dispatcher.invoke("hasOriginalURL", url);
 
 const getOriginalRanges = exports.getOriginalRanges = async (sourceId, url) => dispatcher.invoke("getOriginalRanges", sourceId, url);