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

Function tsn_get_super

tsn/src/tsn/tsn.cpp:1790–1800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1788}
1789
1790tsn_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
1802tsn_value tsn_get_super_constructor(tsn_vm* ctx, const tsn_stackframe* stackframe) {
1803 return JS_GetPrototype(ctx, stackframe->cur_func);

Callers

nothing calls this directly

Calls 3

tsn_get_home_objectFunction · 0.85
tsn_is_exceptionFunction · 0.85
tsn_releaseFunction · 0.85

Tested by

no test coverage detected