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

Function write_chunk

tools/js_optimizer.py:258–261  ·  view source on GitHub ↗
(chunk, i)

Source from the content-addressed store, hash-verified

256 serialized_minify_info += '// EXTRA_INFO:' + json.dumps(minify_info)
257 with ToolchainProfiler.profile_block('js_optimizer.write_chunks'):
258 def write_chunk(chunk, i):
259 temp_file = temp_files.get('.jsfunc_%d.js' % i).name
260 utils.write_file(temp_file, chunk + serialized_minify_info)
261 return temp_file
262 filenames = [write_chunk(chunk, i) for i, chunk in enumerate(chunks)]
263
264 with ToolchainProfiler.profile_block('run_optimizer'):

Callers 1

run_on_fileFunction · 0.85

Calls 2

write_fileMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected