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
30 lines (28 loc) · 871 Bytes
/
worker.js
File metadata and controls
30 lines (28 loc) · 871 Bytes
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
import { getClosestExpression } from "./utils/closest";
import { getVariablesInScope } from "./scopes";
import getSymbols, { clearSymbols } from "./getSymbols";
import { clearASTs } from "./utils/ast";
import getScopes, { clearScopes } from "./getScopes";
import { hasSource, setSource, clearSources } from "./sources";
import getOutOfScopeLocations from "./getOutOfScopeLocations";
import { getNextStep } from "./steps";
import getEmptyLines from "./getEmptyLines";
import { hasSyntaxError } from "./validate";
import { workerUtils } from "devtools-utils";
const { workerHandler } = workerUtils;
self.onmessage = workerHandler({
getClosestExpression,
getOutOfScopeLocations,
getSymbols,
getScopes,
clearSymbols,
clearScopes,
clearASTs,
hasSource,
setSource,
clearSources,
getVariablesInScope,
getNextStep,
getEmptyLines,
hasSyntaxError
});