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:
Thomas Hobson 2021-02-28 01:18:04 +13:00
parent 7d3777aef8
commit 870a4c1282
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
2 changed files with 7 additions and 5 deletions

View file

@ -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;
}