Merge pull request #64 from EpicKiwi/fix/empty-buffer

Tryed to fix error on line comment on the last line of a buffer
This commit is contained in:
Raphaël Forment
2023-10-12 09:10:09 +01:00
committed by GitHub

View File

@ -18,9 +18,9 @@ const tryCatchWrapper = (
return new Promise((resolve, _) => { return new Promise((resolve, _) => {
try { try {
Function( Function(
`"use strict";try{${codeReplace( `"use strict";try{
code ${codeReplace(code)}; /* break block comments */;
)}} catch (e) {console.log(e); _reportError(e);};` } catch (e) {console.log(e); _reportError(e);};`
).call(application.api); ).call(application.api);
resolve(true); resolve(true);
} catch (error) { } catch (error) {