Compare commits
No commits in common. "6dc102a5dd320ecc689e4e28d7c647abe416d56b" and "9f1d50bfe6f2c2130b8bea38c7e4580bf35d4af7" have entirely different histories.
6dc102a5dd
...
9f1d50bfe6
|
@ -214,11 +214,6 @@ void vm::function_detail_info(const nas_func& func) {
|
|||
}
|
||||
|
||||
void vm::function_call_trace() {
|
||||
// no function is called when error ocurred
|
||||
if (!ctx.funcr.is_func()) {
|
||||
return;
|
||||
}
|
||||
|
||||
util::windows_code_page_manager cp;
|
||||
cp.set_utf8_output();
|
||||
|
||||
|
@ -534,10 +529,7 @@ std::string vm::type_name_string(const var& value) const {
|
|||
}
|
||||
|
||||
void vm::die(const std::string& str) {
|
||||
const auto& file = files[bytecode[ctx.pc].fidx];
|
||||
const auto line = bytecode[ctx.pc].line;
|
||||
std::cerr << "[vm] error occurred at " << file << ":" << line << ": ";
|
||||
std::cerr << str << "\n";
|
||||
std::cerr << "[vm] error: " << str << "\n";
|
||||
function_call_trace();
|
||||
|
||||
// trace back contains bytecode info, dump in verbose mode
|
||||
|
|
Loading…
Reference in New Issue