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

Function tsn_set_class_method

tsn/src/tsn/tsn.cpp:2247–2250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2245}
2246
2247tsn_result tsn_set_class_method(tsn_vm* ctx, tsn_value cls, tsn_atom name, tsn_value method) {
2248 return withPrototypeProperty(
2249 ctx, cls, [&](tsn_value prototype) -> int { return tsn_do_set_class_method(ctx, prototype, name, method); });
2250}
2251
2252tsn_result tsn_set_class_method_value(tsn_vm* ctx, tsn_value cls, tsn_value name, tsn_value method) {
2253 return withNameAsAtom(

Callers 1

Calls 2

withPrototypePropertyFunction · 0.85
tsn_do_set_class_methodFunction · 0.85

Tested by

no test coverage detected