diff --git a/src/helpers/init-libcore.js b/src/helpers/init-libcore.js index c7bd4213..5f9ee7cb 100644 --- a/src/helpers/init-libcore.js +++ b/src/helpers/init-libcore.js @@ -24,7 +24,8 @@ const stringToBytesArray = str => Array.from(Buffer.from(str)) const NJSExecutionContextImpl = { execute: runnable => { try { - runnable.run() + const runFunction = () => runnable.run() + setImmediate(runFunction) } catch (e) { logger.log(e) }