MCPcopy Create free account
hub / github.com/Snapchat/Valdi / tsn_dump_obj

Function tsn_dump_obj

tsn/src/tsn/tsn.cpp:563–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void 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
575static void tsn_dump_error1(tsn_vm* ctx, tsn_value_const exception_val) {
576 tsn_value val;

Callers 1

tsn_dump_error1Function · 0.85

Calls 1

JS_ToCStringFunction · 0.85

Tested by

no test coverage detected