}
private RubyArray customBacktrace(ThreadContext context) {
Frame[] frames = context.createBacktrace(1, false);
RubyArray ary = context.getRuntime().newArray();
ary.addAll(formatBacktrace(context.getRuntime(), frames[frames.length - 1]));
return context.getRuntime().newArray((IRubyObject) ary);
}
/*
* TODO: The logic in this method really needs to be wrapped in a backtrace