/* 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 . */ // @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 { isInvalidPauseLocation } from "./pauseLocation"; 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, isInvalidPauseLocation, getNextStep, hasSyntaxError, getFramework, getPausePoints, mapOriginalExpression });