Skip to content

Commit bc619d3

Browse files
committed
Fix temp file leak
Found using the `EMTEST_DETECT_TEMPFILE_LEAKS=1` env variable.
1 parent 2430b4f commit bc619d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,6 +3016,7 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
30163016
src = read_file(final_js)
30173017
final_js += '.esmeta.js'
30183018
write_file(final_js, src.replace('EMSCRIPTEN$IMPORT$META', 'import.meta'))
3019+
shared.get_temp_files().note(final_js)
30193020
save_intermediate('es6-import-meta')
30203021

30213022
# Apply pre and postjs files

0 commit comments

Comments
 (0)