| 1452 | } |
| 1453 | |
| 1454 | static 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 | |
| 1461 | static int tsn_register_class(tsn_vm* ctx, JSClassDef* classDef, JSClassID classID) { |
| 1462 | return JS_NewClass(JS_GetRuntime(ctx), classID, classDef); |
nothing calls this directly
no test coverage detected