Nim/tests/js
Constantine Molchanov 4ae598762e
fixes #21439; Add tyOpenArray to genTypeInfo. (#21440)
* fixes #21439; Add tyOpenArray to genTypeInfo.

* Add test.
2023-02-27 00:56:43 +01:00
..
readme.md tests/tuples/ttuples_issues.nim: test on all backends + various improvements (#16907) 2021-02-02 20:17:13 +01:00
t6612.nim Field checks for everybody (#8957) 2018-10-09 19:54:12 +02:00
t7109.nim follow #15818 and close #7109 (#15823) 2020-11-02 18:27:39 +01:00
t7127.nim add testcase for #7127 (#15780) 2020-10-30 03:54:39 +01:00
t7224.nim fix js stacktraces, unify all file,line,col formatting into a single function (#14230) 2020-05-05 14:56:15 +02:00
t7249.nim Automatic deref for everything but pointers in asm/emit (#8891) 2018-09-07 01:54:59 +02:00
t7534.nim Fix AST generation for case statements (#8908) 2018-09-07 21:07:06 +02:00
t8231.nim avoid #8231, bitwise move to mul,div (#15070) 2020-08-25 09:58:32 +02:00
t8821.nim fix #8821 JS codegen can produce extreme switch statements with case … (#20548) 2022-10-14 12:21:02 +02:00
t8914.nim Fix insert/delete for JS (#8915) 2018-09-08 10:38:18 +02:00
t9410.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
t11166.nim fixed dot operator recursive loop & macro suggest (#16922) 2021-02-15 09:51:05 +01:00
t11353.nim Sets need copying in JS (#11392) 2019-10-02 21:01:59 +02:00
t11354.nim fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… (#15078) 2020-07-27 21:13:49 +02:00
t11697.nim fixes #14112, tests for #12892, #12671, #11697 (#14125) 2020-04-26 10:12:16 +02:00
t12223.nim Fix jsgen bug with uninitialized seq (#12500) [backport] 2019-10-24 11:17:01 +02:00
t12303.nim fix #12303 (#15964) 2020-11-14 12:51:23 +01:00
t12672.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
t14153.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
t14570.nim Fix #14570 (#14571) 2020-06-06 09:31:19 +02:00
t17177.nim fix #17177 (#17243) 2021-03-03 11:57:34 +01:00
t20233.nim fix #20233 Float ranges in case statement in JS crash compiler (#20349) 2022-09-14 17:16:34 +02:00
t20235.nim JS backend properly extends string with setLen (#21087) 2022-12-13 08:43:37 +01:00
t21209.nim fixes #21209; exclude threads options for JS (#21233) 2023-01-08 15:39:25 +01:00
t21209.nims fixes #21209; exclude threads options for JS (#21233) 2023-01-08 15:39:25 +01:00
t21247.nim Specify that address is taken when converter takes a var parameter (#21391) 2023-02-21 12:27:12 +01:00
t21439.nim fixes #21439; Add tyOpenArray to genTypeInfo. (#21440) 2023-02-27 00:56:43 +01:00
tarrayboundscheck.nim Fix negative indexed arrays for JS, refs #13966 (#14152) 2020-04-29 08:59:08 +02:00
tasyncjs.nim std/asyncjs allow transforming proc types (#21356) 2023-02-14 08:14:19 +01:00
tasyncjs_bad.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tasyncjs_pragma.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tbasics.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tbigint_backend.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tbyvar.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tclosures.nim fix noDecl => nodecl (#16760) 2021-01-20 11:08:42 +01:00
tcodegendeclproc.nim Implement codegenDecl for js (#6851) 2017-12-01 15:42:10 +01:00
tcodegendeclvar.nim Implement codegenDecl for js (#6851) 2017-12-01 15:42:10 +01:00
tconsole.nim Ref #14075 - enable two tests which seem to now be passing locally on FreeBSD. (#14076) 2020-04-22 23:35:22 +01:00
tcopying.nim fixes #9674 [backport] (#13143) 2020-01-14 16:20:48 +01:00
tcsymbol.nim undefine C symbols in JS backend [backport:1.6] (#19437) 2022-02-04 17:10:24 -05:00
tderef.nim fix genderef of jsgen (#5274) 2017-01-24 16:59:34 +01:00
tdiscard.nim fix #15638 (#15789) 2020-10-30 09:16:47 +01:00
tdollar_float.nim $(a: float) now works consistently in nim js, avoiding printing floats as ints (#14134) 2020-04-27 17:33:03 +02:00
temptyseq.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
tenumhole.nim Fixes #5062 (#5527); JS: holes in enums 2017-03-15 10:33:37 +01:00
tenumnegkey.nim Fixes #5062 (#5527); JS: holes in enums 2017-03-15 10:33:37 +01:00
tenumoffset.nim Fixes #5062 (#5527); JS: holes in enums 2017-03-15 10:33:37 +01:00
test1.nim clean up deprecated stuff and unused imports in tests (#13059) 2020-01-07 09:49:08 +01:00
test2.nim style fix: change 'JS' to 'js' to make it consistent (#13168) 2020-01-16 14:14:03 +01:00
testmagic.nim Fixed codegen for DotDot magic 2015-06-04 12:00:27 +03:00
testobjs.nim Fixes #10005 2018-12-15 22:57:18 +01:00
testtojsstr.nim Slightly better test case 2016-05-20 16:03:08 +06:00
tfieldchecks.nim deprecate unsafeAddr; extend addr (#19373) 2022-01-16 11:08:38 +01:00
tfloatround.nim Fixes #1959, rounding floats in JS 2015-01-29 05:30:55 -06:00
tglobal.nim [closes #11625 and closes #2488]add global and threadvar(with --threads:off mode ) pragmas supports for JS backend (#15772) 2020-10-30 15:34:07 +01:00
timplicit_nodecl.nim made nodecl implicit for vars in the js backend. (#5297) 2017-01-29 17:34:08 +01:00
tindexdefect.nim [js] add testcase for array indexDefect and remove todo (#19838) 2022-06-10 20:33:44 +02:00
tjsffi.nim deprecate do: meaning do (): + misc cleanup (#20927) 2022-12-06 09:44:26 +01:00
tjsffi_old.nim deprecate do: meaning do (): + misc cleanup (#20927) 2022-12-06 09:44:26 +01:00
tjshello.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
tjshello_stacktrace.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
tlent.nim Optimize lent in JS [backport:1.6] (#19393) 2022-01-17 13:03:40 +01:00
tmangle.nim fix #14350, cstrings in JS init as null (#14355) 2020-05-15 10:07:30 +02:00
tmodify_cstring.nim fix #14157 (#15877) 2020-11-12 09:20:10 +01:00
tnativeexc.nim Try/Catch support for native JS exceptions (#8955) 2018-10-09 19:51:29 +02:00
tnilstrs.nim [backport:1.4] JS cstring null fixes (#16979) 2021-02-11 17:04:32 +01:00
tobjfieldbyvar.nim Fixes #2798 2015-05-26 16:00:48 +03:00
tos.nim envPairs works in vm, nims (#18615) 2021-09-29 09:32:39 +02:00
trefbyvar.nim Improved collection-to-string behavior (#6825) 2017-12-14 14:02:13 +01:00
trepr.nim fixes devel CI (#20512) 2022-10-07 15:00:15 +02:00
treprinifexpr.nim fix #15651 (#15800) 2020-10-31 12:06:13 +01:00
tseqops.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tsourcemap.nim Refactor JS sourcemap generator (#21053) 2022-12-13 12:21:51 +08:00
tstdlib_imports.nim build the documentation of official packages (#20986) 2022-12-06 22:37:16 +08:00
tstdlib_various.nim fix #16993, #18054, #17835 runnableExamples now works with templates and nested templates (#18082) 2021-06-02 09:02:14 -07:00
tstreams.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
tstring_assignment.nim fixes #4470 2018-04-13 23:41:31 +02:00
tstringitems.nim JS codegen: supports toOpenArray [bugfix] 2019-07-12 10:11:59 +02:00
ttempgen.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
tthismangle.nim Correctly mangle this in the JS backend (#8853) 2018-09-03 17:51:30 +02:00
ttryexceptnewsyntax.nim fixes #5986 js backend failed to compile try ... except new syntax (#6116) 2017-07-17 08:07:47 +02:00
ttypedarray.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tunion.nim closes #7658 (#15784) 2020-10-30 09:58:55 +01:00
tunittest_error.nim fix #14475; unittest.require now works with nim c; require and check now works with -d:nodejs (#14676) 2020-07-14 13:14:32 +02:00
tunittest_error2.nim fix CI failure(upstream changes) (#18820) 2021-09-08 11:47:14 +02:00
tvarargs.nim lots of small changes 2018-12-11 21:23:22 +01:00
twritestacktrace.nim add simple writeStackTrace for JS backend (#16016) 2020-11-24 19:45:06 +01:00

notes

Prefer moving tests to a non-js directory so that they get tested across all backends automatically. Ideally, tests/js should be reserved to code that only makes sense in js.

Note also that tests for a js specific module (e.g.: std/jsbigints) belong to tests/stdlib, (e.g.: tests/stdlib/tjsbigints.nim)