$ now works for unsigned intergers with nim js (#14122)

* $(unsigned) now works for js
* move NimMajor+friends closer to NimVersion according as per reviewer feedback
This commit is contained in:
Timothee Cour 2020-04-27 10:15:17 -07:00 • committed by GitHub
commit a3a317b76d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 96 additions and 4 deletions

View file

@ -43,6 +43,8 @@
- Added high-level `asyncnet.sendTo` and `asyncnet.recvFrom`. UDP functionality.
- `dollars.$` now works for unsigned ints with `nim js`
## Language changes
- In newruntime it is now allowed to assign discriminator field without restrictions as long as case object doesn't have custom destructor. Discriminator value doesn't have to be a constant either. If you have custom destructor for case object and you do want to freely assign discriminator fields, it is recommended to refactor object into 2 objects like this:
```nim