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

Function read_js_files

tools/link.py:292–301  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

290
291
292def read_js_files(files):
293 contents = []
294 for f in files:
295 content = read_file(f)
296 if content.startswith('#preprocess\n'):
297 contents.append(building.read_and_preprocess(f, expand_macros=True))
298 else:
299 contents.append(content)
300 contents = '\n'.join(contents)
301 return fix_windows_newlines(contents)
302
303
304def should_run_binaryen_optimizer():

Callers 1

phase_final_emittingFunction · 0.85

Calls 4

fix_windows_newlinesFunction · 0.85
appendMethod · 0.80
read_fileFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected