| 561 | } |
| 562 | |
| 563 | void tsn_dump_obj(tsn_vm* ctx, FILE* f, tsn_value val) { |
| 564 | const char* str; |
| 565 | |
| 566 | str = JS_ToCString(ctx, val); |
| 567 | if (str) { |
| 568 | fprintf(f, "%s\n", str); |
| 569 | JS_FreeCString(ctx, str); |
| 570 | } else { |
| 571 | fprintf(f, "[exception]\n"); |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | static void tsn_dump_error1(tsn_vm* ctx, tsn_value_const exception_val) { |
| 576 | tsn_value val; |
no test coverage detected