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

Function do_replace

tools/shared.py:606–609  ·  view source on GitHub ↗
(input_, pattern, replacement)

Source from the content-addressed store, hash-verified

604
605
606def do_replace(input_, pattern, replacement):
607 if pattern not in input_:
608 exit_with_error('expected to find pattern in input JS: %s' % pattern)
609 return input_.replace(pattern, replacement)
610
611
612def get_llvm_target():

Callers 5

phase_post_linkFunction · 0.85
phase_embind_aotFunction · 0.85
phase_binaryenFunction · 0.85
modularizeFunction · 0.85

Calls 1

exit_with_errorFunction · 0.85

Tested by

no test coverage detected