Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function makebuffer_from_trace(func: string | Function): Buffer {
if (typeof func === "string") {
return makeBuffer(hexString(func as string));
}
return makeBuffer(hexString(inlineText(func)));
}