"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DebuggerWorker = void 0;
const request_handler_1 = require("./request-handler");
class DebuggerWorker {
    constructor() {
        // Note that `onmessage` should be overwritten by the code using the worker.
        this.onmessage = () => { };
    }
    postMessage(data) {
        (0, request_handler_1.handle_request)(data).then((res) => {
            this.onmessage({ data: res });
        });
    }
}
exports.DebuggerWorker = DebuggerWorker;
//# sourceMappingURL=debugger-worker.js.map