global_unavailable
A module uses a global that disko-js does not have, such as Math or Date.
A module uses a global that disko-js does not have, such as Math or Date.
| Kind | Build or validation problem |
| Reported by | Archive and source validation |
disko exit code | 1 (problems) |
A module uses a global that disko-js, the language disko games run in, does not have. Games run the same on every computer, so disko-js leaves out what would differ between them:
Math: import the functions fromdisko:mathinstead.Dateandperformance: count time in ticks, from thetickevent.evalandFunction: disko-js never runs code made from text.WeakRefandFinalizationRegistry,SharedArrayBufferandAtomics.Anything from browsers or Node.js, such as
console,setTimeoutordocument.
Wrong
src/rules.ts
Right
src/rules.ts