Skip to content

Commit

Permalink
fix: segmentation fault
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Nov 12, 2024
1 parent 9c8fa22 commit a085000
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {val} from "./module";

it("should accept changes", (done) => {
expect(val).toBe(1);
NEXT(require("../../update")(done));
done();
// CHANGE: fix an issue when `done` is called before compiler is done, causing a segmentation fault.
NEXT(require("../../update")(done, true, () => done()));
});

0 comments on commit a085000

Please sign in to comment.