crash vm trace

This commit is contained in:
2026-02-20 23:14:43 -06:00
parent 34cb19c357
commit 5ea0de9fbb
5 changed files with 91 additions and 4 deletions

View File

@@ -1054,6 +1054,11 @@ MachCode *mach_compile_mcode(struct cJSON *mcode_json);
Does NOT clear reg_current_frame — caller is responsible if needed. */
JSValue JS_GetStack (JSContext *ctx);
/* Crash-safe stack printer: walks JS frames and writes to stderr.
Uses only write() (async-signal-safe). No GC allocations.
Safe to call from signal handlers. */
void JS_CrashPrintStack(JSContext *ctx);
#undef js_unlikely
#undef inline