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

Function tsn_call_vargs

tsn/src/tsn/tsn.cpp:1673–1684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1671}
1672
1673tsn_value tsn_call_vargs(tsn_vm* ctx, tsn_value_const func_obj, tsn_value_const this_obj, tsn_value_const args) {
1674 uint32_t len;
1675 auto* argumentsList = JS_BuildArgumentsList_tsn(ctx, args, &len);
1676 if (argumentsList == nullptr) {
1677 return tsn_exception(ctx);
1678 }
1679
1680 auto result = tsn_call(ctx, func_obj, this_obj, static_cast<size_t>(len), argumentsList);
1681
1682 JS_FreeArgumentsList_tsn(ctx, argumentsList, len);
1683 return result;
1684}
1685
1686tsn_value tsn_call_fargs(
1687 tsn_vm* ctx, tsn_value_const func_obj, tsn_value_const this_obj, int argc, tsn_value_const* argv) {

Callers

nothing calls this directly

Calls 2

tsn_exceptionFunction · 0.85
tsn_callFunction · 0.85

Tested by

no test coverage detected