Skip to content

Commit

Permalink
🐞 fix: Add await() before deleting jaspiler
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Jun 30, 2023
1 parent 58270e1 commit 035b52c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/caoccao/jaspiler/JaspilerMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public JaspilerExitCode execute(String[] args) {
nodeRuntime.getGlobalObject().set(V8Jaspiler.NAME, v8Jaspiler);
var executor = new V8PatchedFileExecutor(nodeRuntime, file);
executor.executeVoid();
nodeRuntime.await();
} finally {
nodeRuntime.getGlobalObject().delete(V8Jaspiler.NAME);
nodeRuntime.lowMemoryNotification();
Expand Down

0 comments on commit 035b52c

Please sign in to comment.