| 1788 | } |
| 1789 | |
| 1790 | tsn_value tsn_get_super(tsn_vm* ctx, const tsn_stackframe* stackframe) { |
| 1791 | auto home_object = tsn_get_home_object(ctx, stackframe->cur_func); |
| 1792 | if (tsn_is_exception(ctx, home_object)) { |
| 1793 | return home_object; |
| 1794 | } |
| 1795 | |
| 1796 | auto parent_prototype = JS_GetPrototype(ctx, home_object); |
| 1797 | tsn_release(ctx, home_object); |
| 1798 | |
| 1799 | return parent_prototype; |
| 1800 | } |
| 1801 | |
| 1802 | tsn_value tsn_get_super_constructor(tsn_vm* ctx, const tsn_stackframe* stackframe) { |
| 1803 | return JS_GetPrototype(ctx, stackframe->cur_func); |
nothing calls this directly
no test coverage detected