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

Function process

tools/js_optimizer.py:191–195  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

189 finals = []
190
191 def process(line):
192 if line and (line.startswith(('Module[', 'if (globalScope)')) or line.endswith('["X"]=1;')):
193 finals.append(line)
194 return False
195 return True
196
197 js = '\n'.join(line for line in js.split('\n') if process(line))
198 post = '\n'.join(finals) + '\n' + post

Callers 1

run_on_fileFunction · 0.70

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected