Skip to content

Commit 3e23ec9

Browse files
authored
Merge pull request #5829 from saschanaz/process-shell
Remove unused argument on duplicate_function_eliminator
2 parents d95a910 + a842ffe commit 3e23ec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/duplicate_function_eliminator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
DUPLICATE_FUNCTION_ELIMINATOR = path_from_root('tools', 'eliminate-duplicate-functions.js')
1111

12-
def process_shell(js, js_engine, shell, equivalentfn_hash_info=None):
12+
def process_shell(js_engine, shell, equivalentfn_hash_info=None):
1313
suffix = '.eliminatedupes'
1414

1515
with temp_files.get_file(suffix + '.js') as temp_file:
@@ -197,7 +197,7 @@ def run_on_js(filename, gen_hash_info=False):
197197
js = js[start_funcs + len(start_funcs_marker):end_funcs]
198198

199199
# we assume there is a maximum of one new name per line
200-
asm_shell_pre, asm_shell_post = process_shell(js, js_engine, asm_shell, equivalentfn_hash_info).split('EMSCRIPTEN_FUNCS();');
200+
asm_shell_pre, asm_shell_post = process_shell(js_engine, asm_shell, equivalentfn_hash_info).split('EMSCRIPTEN_FUNCS();')
201201
asm_shell_pre = re.sub(r'(\S+\s*=\s*)ZERO\$DOT\$ZERO', r'\g<1>0.0', asm_shell_pre)
202202
asm_shell_post = asm_shell_post.replace('});', '})');
203203
pre += asm_shell_pre + '\n' + start_funcs_marker

0 commit comments

Comments
 (0)