(name, suffix='js')
| 142 | # TODO: refactor all this, a singleton that abstracts over the final output |
| 143 | # and saving of intermediates |
| 144 | def save_intermediate(name, suffix='js'): |
| 145 | if not DEBUG: |
| 146 | return |
| 147 | if not final_js: |
| 148 | logger.debug(f'(not saving intermediate {name} because not generating JS)') |
| 149 | return |
| 150 | building.save_intermediate(final_js, f'{name}.{suffix}') |
| 151 | |
| 152 | |
| 153 | def save_intermediate_with_wasm(name, wasm_binary): |
no outgoing calls
no test coverage detected