index.js (580B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ 4 5 import { WorkerDispatcher } from "devtools/client/shared/worker-utils"; 6 7 const WORKER_URL = "resource://devtools/client/debugger/dist/search-worker.js"; 8 9 export class SearchDispatcher extends WorkerDispatcher { 10 constructor(jestUrl) { 11 super(jestUrl || WORKER_URL); 12 } 13 14 getMatches = this.task("getMatches"); 15 16 findSourceMatches = this.task("findSourceMatches"); 17 }