// index.ts
var EdgeError = class extends Error {
  constructor(message, code, options) {
    super(message);
    this.message = message;
    this.code = code;
    this.line = options.line;
    this.col = options.col;
    this.filename = options.filename;
    const stack = this.stack.split("\n");
    stack.splice(1, 0, `    at anonymous (${this.filename}:${this.line}:${this.col})`);
    this.stack = stack.join("\n");
  }
  line;
  col;
  filename;
};
export {
  EdgeError
};
