diff --git a/src/Evaluator.ts b/src/Evaluator.ts index 8e58f97..460474f 100644 --- a/src/Evaluator.ts +++ b/src/Evaluator.ts @@ -18,9 +18,9 @@ const tryCatchWrapper = ( return new Promise((resolve, _) => { try { Function( - `"use strict";try{${codeReplace( - code - )}} catch (e) {console.log(e); _reportError(e);};` + `"use strict";try{ + ${codeReplace(code)}; /* break block comments */; + } catch (e) {console.log(e); _reportError(e);};` ).call(application.api); resolve(true); } catch (error) {