summaryrefslogtreecommitdiffstats
path: root/byterun/printexc.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/printexc.c')
-rw-r--r--byterun/printexc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/byterun/printexc.c b/byterun/printexc.c
index 9ab384846..4988508c5 100644
--- a/byterun/printexc.c
+++ b/byterun/printexc.c
@@ -102,7 +102,9 @@ void fatal_uncaught_exception(value exn)
fprintf(stderr, "Fatal error: uncaught exception %s\n", msg);
#endif
free(msg);
+#ifndef NATIVE_CODE
if (backtrace_active && !debugger_in_use) print_exception_backtrace();
+#endif
#ifdef HAS_UI
ui_exit(2);
#else