Rishabh-malhotraa / caucus

Realtime Collaborate Editor with Embedded Compiler
https://caucus.rishabhmalhotra.in/
MIT License
296 stars 69 forks source link

Not supporting async functions in JavaScipt #25

Closed CharlesElloit closed 3 years ago

CharlesElloit commented 3 years ago

The bug is, it doesn't support async arrow function or normal async function in JavaScript. It automatically throws an error after running the function.

Rishabh-malhotraa commented 3 years ago

@CharlesElloit thank you for pointing it out, this would be fixed in the next release PATCH 1.03, I'm a bit busy these days but basically, we need to migrate code execution from JDOODLE to the piston and that should take care of that, it would also add more languages for code execution like rust c swift etc..

Duplicate of #20

Rishabh-malhotraa commented 3 years ago

async functions aren't supported by remote code execution engine, because the engine automatically destroys its docker instance after 2 seconds of runtime, so if the async function is not returned in 2 seconds it would not work.