| 1671 | } |
| 1672 | |
| 1673 | tsn_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 | |
| 1686 | tsn_value tsn_call_fargs( |
| 1687 | tsn_vm* ctx, tsn_value_const func_obj, tsn_value_const this_obj, int argc, tsn_value_const* argv) { |
nothing calls this directly
no test coverage detected