MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_global

Method get_global

tools/webassembly.py:602–605  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

600 yield idx, self.get_function(idx)
601
602 def get_global(self, idx):
603 self._calc_indexes()
604 assert idx >= self.num_imported_globals()
605 return self.get_globals()[idx - self.num_imported_globals()]
606
607 def get_function_type(self, idx):
608 self._calc_indexes()

Callers 3

get_section_stringsFunction · 0.80
get_other_exportsFunction · 0.80
extract_metadataFunction · 0.80

Calls 3

_calc_indexesMethod · 0.95
num_imported_globalsMethod · 0.95
get_globalsMethod · 0.95

Tested by

no test coverage detected