While working on a serverside Javascript application with our own engine, I encountered the need to test the application until an out of memory error occurs. Unlike in Java where you can try/catch this type of error as it is treated as an exception, I faced difficulty doing the same in Javascript. Is there any workaround to ensure the execution continues after the error is thrown?