Commit Graph

4734 Commits

Author SHA1 Message Date
flywind
70a1c42542 add ** to jsffi (#16141)
* fix rope index

* add testcase

* fix ropes format

* add `**` to jsffi

* add testcase

* changelog

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-11-26 20:30:19 +01:00
Andreas Rumpf
4fdaded227 updated repr tests (#16147) 2020-11-26 20:00:31 +01:00
Andreas Rumpf
cf516713d0 fixes https://github.com/status-im/nimbus-eth2/issues/1549 (#16146)
* fixes https://github.com/status-im/nimbus-eth2/issues/1549 [backport:1.4]

* test fixup
2020-11-26 19:05:21 +01:00
cooldome
2f1a9eadd7 More on #16110 (#16130)
* fix #16110

* refs #16110

* fix comment

* Trigger build

* use shallowCopy for efficiency
2020-11-26 13:44:06 +00:00
cooldome
8c12d3e29d fix #16120 (#16145) 2020-11-26 14:37:34 +01:00
Andreas Rumpf
da753c6a2e fixes #15076 (#16143)
* fixes #15076

* heapqueue: optimized for ARC

* added another test case [backport:1.4]

* code cleanup
2020-11-26 10:24:52 +01:00
Timothee Cour
3e7077ac7d fix #14339, #13511, #14420: fixes limited VM support for addr (#16002)
* fix #14339: fixes limited VM support for addr

* strengthen test

* reference bug #16003

* also fixes #13511

* also fixes #14420
2020-11-25 20:48:10 +01:00
flywind
7848da7abe inc and dec are atomic in JS backend (#16129) 2020-11-25 14:09:03 +01:00
flywind
57bd64582c move tests under the compiler directory to testament (#16096) 2020-11-25 07:48:27 +01:00
flywind
19e224866b add simple writeStackTrace for JS backend (#16016)
* add simple writeStackTrace for JS backend

* add testcase for writeStackTrace

* changelog
2020-11-24 19:45:06 +01:00
flywind
cbc793b30b move tests to testament (#16101)
* move tests to testament

* minor

* fix random

* disable test random
2020-11-24 19:06:41 +01:00
Andreas Rumpf
d306a04466 fixes #16069; [backport:1.2] [backport:1.4] (#16115)
* fixes #16069; refs https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] [backport:1.4]

* make tests green again
2020-11-24 16:09:00 +01:00
cooldome
1d14b2c9e6 fix #16110 (#16117) 2020-11-24 15:49:14 +01:00
Andrey R (cooldome)
9a2a83ad71 Revert "fix #16110"
This reverts commit f8b9d8c190.
2020-11-24 12:11:13 +00:00
Andrey R (cooldome)
f8b9d8c190 fix #16110 2020-11-24 11:53:55 +00:00
flywind
e4d0f9f3de typeinfo minor improvement (#16083)
* typeinfo minor improvement

* minor

* Update lib/core/typeinfo.nim

* rename typeinfo
2020-11-23 22:56:30 +01:00
kemifl
a764a5b9bc fix #14056 (#16071)
fix #14056, incorporate review comments
2020-11-23 19:53:57 +01:00
flywind
0c6c4be0e7 fix ropes format errors (#16106) [backport:1.0]
* fix rope index

* add testcase

* fix ropes format
2020-11-23 19:23:52 +01:00
flywind
ab2c082cb3 fix rope index (#16100)
* fix rope index

* add testcase
2020-11-23 10:27:09 +00:00
flywind
6f1a72069a fix #9695 asyncmacro: tfuturevar fails when activated [backport: 1.0] (#16090)
* fix asyncmacro

* Apply suggestions from code review

* Update lib/pure/asyncmacro.nim
2020-11-22 17:16:42 +01:00
flywind
f1764aaa9e sets minor improvement (#16087) 2020-11-21 12:50:23 -08:00
flywind
c9371ef59d deques minor improvement (#16084) 2020-11-21 12:30:04 -08:00
flywind
3040f05505 xmltree minor improvement (#16085) 2020-11-21 12:26:51 -08:00
flywind
dd57d46f2f complex minor improvement (#16086) 2020-11-21 12:20:33 -08:00
flywind
f3887dea2c heapqueue minor improvement (#16088) 2020-11-21 12:16:35 -08:00
Timothee Cour
5e8ac485a2 followup #15970 strenghten regression tests (#16075)
* followup #15970 strenghten regression tests

* _
2020-11-20 22:16:59 +00:00
cooldome
fcb2ec4ed6 fix #15958 (#15970) [backport:1.4]
* fix #15958

* also cover openArray and VarArgs

* more tests

* cover even more types

* cover even more types

* Trigger build

* Trigger build

* cover sets passed as arrays
2020-11-20 14:58:16 +01:00
flywind
6cf5ca1dc2 alternative way to fix #16022 (#16064) [backport:1.4]
* alternative way to fix #16022
* add testcase for #16022

[backport:1.4]
2020-11-20 09:06:18 +01:00
Timothee Cour
109cc45398 packedsets fix regression introduced in #15564 (#16060)
* packedsets fix regression introduced in #15564

* add tests
2020-11-20 08:07:51 +01:00
Timothee Cour
b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) 2020-11-19 12:12:51 -08:00
flywind
1bcc352137 close #14847(add testcase for #14847) (#16045) 2020-11-19 08:31:54 +01:00
cooldome
acf8316e50 Disallow nil dereference at compile time (#16032)
* bring back the semfold of nil

* remove space

* fix test

* proc type can't be dereferenced

* disallow nil dereference at compile time

* changelog
2020-11-18 23:30:28 +01:00
Timothee Cour
557dcfd87d fix #16033 nim js --gc:arc works and ignores --gc:arc (#16036) 2020-11-18 23:28:52 +01:00
Andreas Rumpf
b9eb91cbb5 ORC: prepare for another patent-pending optimization (#15996)
* ORC: prepare for another patent-pending optimization

* bugfix

* '=copy' for refs can take a cyclic parameter for more ORC optimizations

* ORC: exploit the common 'it = it.next' pattern

* can't hurt to check for nil

* use an algorithm that is not obviously broken

* restore the test case

* final cleanups for --gc:orc
2020-11-18 22:31:06 +01:00
cooldome
87d3e5331a Semfold for nil cast (#16030)
* bring back the semfold of nil

* remove space

* fix test

* proc type can't be dereferenced
2020-11-18 17:19:57 +00:00
flywind
581bcfe290 fix #6497 (#16027)
* fix #6497

* add testcase for #16027
2020-11-18 07:56:31 +00:00
flywind
e6e1e9574d combine PR#16009 and PR#16012 (#16024)
* fix #15623
* add testcase for #15623
* add testcase
* combine #16009
* support casting nil to NilableTypes in VM
2020-11-18 08:28:05 +01:00
flywind
0869d2a477 fix #15972 (#15994)
* fix #15972

* add testcase

* more
2020-11-18 00:14:14 +00:00
Andrey R (cooldome)
632af8afad Revert "follow #16009 VM supports cast nil to ptr (#16012)"
This reverts commit fec19c980e.
2020-11-17 18:54:33 +00:00
Andrey R (cooldome)
1663ad77e3 Revert "fix #15623 (#16009)"
This reverts commit 0f7f159a35.
2020-11-17 18:54:14 +00:00
flywind
0f7f159a35 fix #15623 (#16009)
* fix #15623

* add testcase for #15623

* fix

* add testcase
2020-11-17 17:05:20 +00:00
flywind
fec19c980e follow #16009 VM supports cast nil to ptr (#16012)
* follow #16009 VM supports cast nil to ptr

* more testcase
2020-11-17 10:47:01 +00:00
cooldome
a4d02f591c fix #15910 (#15984)
* fix #15910

* produce op of op is nil

* Trigger build
2020-11-16 11:39:28 +00:00
Andreas Rumpf
fc735e4b08 fix #15934 and #15620 (#15938) [backport:1.4]
* make workaround for #15934 and #15620
* add testcase for #9754
2020-11-15 18:12:53 +01:00
Andreas Rumpf
7eb34d170a fixes #15753 [backport:1.4] (#15971) 2020-11-15 15:47:42 +01:00
Andreas Rumpf
122f22d163 asynchttpserver cleanups [backport:1.0] (#15966)
* asynchttpserver cleanups [backport:1.0]
2020-11-15 07:27:13 +01:00
flywind
47ce24f680 fix #12303 (#15964) 2020-11-14 12:51:23 +01:00
Timothee Cour
96930b9cae targets: use cpp instead of c++ everywhere (was by far the most common) (#15961) 2020-11-14 10:08:15 +01:00
Timothee Cour
1a47fc2291 strengthen taddr.nim: add test case for #14578; reference other issues; test cpp (#15960) 2020-11-13 14:44:44 -08:00
Andreas Rumpf
562c6275b8 attempt to make asynchttpserver better; fixes #15925; [backport:1.0] (#15957)
* attempt to make asynchttpserver better; fixes #15925; [backport:1.0]
* better documentation
* fixes 'nim doc'
* makes test green again
* ported to FreeRTOS
* fixes the doc rendering
2020-11-13 20:57:43 +01:00