Open sebastianandreasson opened 6 years ago
Just found this awesome project and tried out the starting javascript bot, however it didn't run for me. Looks to be usage of spread operator here
Changing it from
this._params = { health: constants.BASE_SHIP_HEALTH, dockingStatus: dockingStatus.UNDOCKED, ...params }
to
this._params = Object.assign({ health: constants.BASE_SHIP_HEALTH, dockingStatus: dockingStatus.UNDOCKED, }, params)
and it runs fine!
Just found this awesome project and tried out the starting javascript bot, however it didn't run for me. Looks to be usage of spread operator here
Changing it from
to
and it runs fine!