importScripts('../../dist/js2flowchart.js');

self.onmessage = function(message) {
    const code = message.data.code;
    let svg = '',
        shouldUpdate = true;
    try {
        shouldUpdate = true;
        svg = js2flowchart.convertCodeToSvg(code);
    } catch (e) {
        shouldUpdate = false;
    } finally {
        shouldUpdate && self.postMessage({
            svg
        });
    }

};



@@ -297,16 +297,40 @@
  false;%0A
+        console.log(e);%0A
     %7D fi

Add log