fix: static
This commit is contained in:
parent
2198a8d3d3
commit
61ccf483d7
@ -7,6 +7,7 @@
|
|||||||
import Operation from "../Operation.mjs";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError.mjs";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { isWorkerEnvironment } from "../Utils.mjs";
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
|
import cs from "@alexaltea/capstone-js/dist/capstone.min.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disassemble ARM operation
|
* Disassemble ARM operation
|
||||||
@ -96,13 +97,6 @@ class DisassembleARM extends Operation {
|
|||||||
bytes.push(parseInt(hexInput.substr(i, 2), 16));
|
bytes.push(parseInt(hexInput.substr(i, 2), 16));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWorkerEnvironment()) {
|
|
||||||
self.sendStatusMessage("Loading Capstone disassembler...");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dynamically import capstone to avoid loading the large library until needed
|
|
||||||
const cs = (await import("@alexaltea/capstone-js/dist/capstone.min.js")).default;
|
|
||||||
|
|
||||||
// Determine architecture constant
|
// Determine architecture constant
|
||||||
let arch;
|
let arch;
|
||||||
if (architecture === "ARM64 (AArch64)") {
|
if (architecture === "ARM64 (AArch64)") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user