From 008a8cc8e747d53e49d6438aa462b1cedfa698b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Wed, 13 Nov 2024 22:28:10 +0100 Subject: [PATCH] Fix the `Setup._compile()` method --- src/setup.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.coffee b/src/setup.coffee index b439d55..189743e 100644 --- a/src/setup.coffee +++ b/src/setup.coffee @@ -35,7 +35,7 @@ export class Setup # Compiles the sources of the HashLink VM located in the specified directory. # Returns the path to the output directory. _compile: (directory) -> - Promise.reject Error "Compilation is not supported on \"#{platform}\" platform." if platform not in ["darwin", "linux"] + return Promise.reject Error "Compilation is not supported on \"#{platform}\" platform." if platform not in ["darwin", "linux"] workingDirectory = cwd() chdir directory