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

Function __tsn_module_mark

tsn/src/tsn/tsn.cpp:1454–1459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1452}
1453
1454static void __tsn_module_mark(JSRuntime* rt, JSValueConst val, JS_MarkFunc* mark_func) {
1455 auto* module = tsn_get_module_from_value(val);
1456 for (size_t i = 0; i < module->constants_length; i++) {
1457 JS_MarkValue(rt, module->constants[i], mark_func);
1458 }
1459}
1460
1461static int tsn_register_class(tsn_vm* ctx, JSClassDef* classDef, JSClassID classID) {
1462 return JS_NewClass(JS_GetRuntime(ctx), classID, classDef);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected