MCPcopy Create free account
hub / github.com/WebAssembly/wabt / _Module

Method _Module

test/gen-spec-js.py:442–444  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

440 self._Action(command['action'])))
441
442 def _Module(self, filename):
443 with open(os.path.join(self.base_dir, filename), 'rb') as wasm_file:
444 return ''.join('\\x%02x' % c for c in bytearray(wasm_file.read()))
445
446 def _Constant(self, const):
447 assert IsValidJSConstant(const), 'Invalid JS const: %s' % const

Callers 2

_WriteModuleCommandMethod · 0.95

Calls 2

joinMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected