Skip to content

Commit

Permalink
Merge pull request #64 from EpicKiwi/fix/empty-buffer
Browse files Browse the repository at this point in the history
Tryed to fix error on line comment on the last line of a buffer
  • Loading branch information
Bubobubobubobubo authored Oct 12, 2023
2 parents 883710e + d97cceb commit 6802d29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6802d29

Please sign in to comment.