diff --git a/run-test262.c b/run-test262.c index 56e233c4c..1c901c4ee 100644 --- a/run-test262.c +++ b/run-test262.c @@ -498,6 +498,15 @@ static JSValue js_print_262(JSContext *ctx, JSValueConst this_val, if (verbose > 1) printf("%s%s", &" "[i < 1], s); JS_FreeCString(ctx, s); + if (verbose > 2 && JS_IsError(v)) { + JSValue stack = JS_GetPropertyStr(ctx, v, "stack"); + s = JS_ToCString(ctx, stack); + JS_FreeValue(ctx, stack); + if (s) { + printf("\n%s", s); + JS_FreeCString(ctx, s); + } + } } if (outfile) fputc('\n', outfile);