forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworker.js
More file actions
36 lines (32 loc) · 1.07 KB
/
worker.js
File metadata and controls
36 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
import { getSymbols, clearSymbols } from "./getSymbols";
import { clearASTs } from "./utils/ast";
import getScopes, { clearScopes } from "./getScopes";
import { hasSource, setSource, clearSources } from "./sources";
import findOutOfScopeLocations from "./findOutOfScopeLocations";
import { getNextStep } from "./steps";
import { hasSyntaxError } from "./validate";
import { getFramework } from "./frameworks";
import { getPausePoints } from "./pausePoints";
import mapOriginalExpression from "./mapOriginalExpression";
import { workerUtils } from "devtools-utils";
const { workerHandler } = workerUtils;
self.onmessage = workerHandler({
findOutOfScopeLocations,
getSymbols,
getScopes,
clearSymbols,
clearScopes,
clearASTs,
hasSource,
setSource,
clearSources,
getNextStep,
hasSyntaxError,
getFramework,
getPausePoints,
mapOriginalExpression
});