<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [SanitizedEmscriptenTestModule](./rc-js-util.sanitizedemscriptentestmodule.md) &gt; [endEmscriptenProgram](./rc-js-util.sanitizedemscriptentestmodule.endemscriptenprogram.md)

## SanitizedEmscriptenTestModule.endEmscriptenProgram() method

NB you MUST set the flag `-s EXIT_RUNTIME=1` for this to work.

**Signature:**

```typescript
endEmscriptenProgram(errorLoggingAllowed?: boolean): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

errorLoggingAllowed


</td><td>

boolean


</td><td>

_(Optional)_


</td></tr>
</tbody></table>
**Returns:**

void

