| 2259 | } |
| 2260 | |
| 2261 | tsn_result tsn_set_class_static_method_value(tsn_vm* ctx, tsn_value cls, tsn_value name, tsn_value method) { |
| 2262 | return withNameAsAtom( |
| 2263 | ctx, name, [&](tsn_atom name) -> int { return tsn_set_class_static_method(ctx, cls, name, method); }); |
| 2264 | } |
| 2265 | |
| 2266 | tsn_result tsn_set_class_property_getter(tsn_vm* ctx, tsn_value cls, tsn_atom name, tsn_value getter) { |
| 2267 | return withPrototypeProperty(ctx, cls, [&](tsn_value prototype) -> int { |
nothing calls this directly
no test coverage detected