dont crash if there are no aliases

This commit is contained in:
Thomas Hobson 2021-04-25 16:37:05 +12:00
parent 8e7279ce69
commit 45eb4c799d
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Runtime {
constructor({language, version, aliases, pkgdir, runtime}){ constructor({language, version, aliases, pkgdir, runtime}){
this.language = language; this.language = language;
this.version = version; this.version = version;
this.aliases = aliases; this.aliases = aliases || [];
this.pkgdir = pkgdir; this.pkgdir = pkgdir;
this.runtime = runtime; this.runtime = runtime;
} }