mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
api: fix compile stage
runtime.compiled always returned false as it was undefined. This made the code think it's a run-only language, and never called the compile script.
This commit is contained in:
parent
7d3777aef8
commit
870a4c1282
2 changed files with 7 additions and 5 deletions
|
@ -48,7 +48,7 @@ class Runtime {
|
|||
return res;
|
||||
}
|
||||
|
||||
get compile(){
|
||||
get compiled(){
|
||||
if(this.#compiled === undefined) this.#compiled = fss.exists_sync(path.join(this.pkgdir, 'compile'));
|
||||
return this.#compiled;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue