summary refs log tree commit diff stats
path: root/lib/js/asyncjs.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes JS semicolon omissions (#23896)ringabout2024-07-261-2/+2
|
* Deprecate asm stmt for js target (#23149)ASVIEST2024-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | why ? - We already have an emit that does the same thing - The name asm itself is a bit confusing, you might think it's an alias for asm.js or something else. - The asm keyword is used differently on different compiler targets (it makes it inexpressive). - Does anyone (other than some compiler libraries) use asm instead of emit ? If yes, it's a bit strange to use asm somewhere and emit somewhere. By making the asm keyword for js target deprecated, there would be even less use of the asm keyword for js target, reducing the amount of confusion. - New users might accidentally use a non-universal approach via the asm keyword instead of emit, and then when they learn about asm, try to figure out what the differences are. see https://forum.nim-lang.org/t/10821 --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Don't recurse into inner functions during asyncjs transform (#23036)Jake Leahy2023-12-061-0/+2
| | | Closes #13341
* `std/asyncjs` allow transforming proc types (#21356)Jake Leahy2023-02-141-1/+9
| | | | | * Add test case * Implement JS async transform for nnkProcTy
* Markdown code blocks migration part 7 (#20547)Andrey Makarov2022-10-121-8/+13
|
* Remove define for jsfetch (#19530)Juan Carlos2022-02-251-88/+88
| | | | | | | | | * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch
* `typeof(voidStmt)` now works (#17807)Timothee Cour2021-04-231-5/+2
| | | | | | | | * `typeof(voidStmt)` now works * remove typeOrVoid * add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193 * fixup * changelog [skip ci] * fixup
* Use importjs (#17422)konsumlamm2021-03-191-4/+4
|
* followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189)Timothee Cour2021-03-041-21/+58
| | | | | | | | | | * followup #16871 asyncjs.then: allow pipelining procs returning futures * rename test files where they belong * fix tests * tests for then with `onReject` callback * rename test file containing fail to avoid messing with grep * address comments * cleanup * un-disable 1 test
* fix #17177 (#17243)flywind2021-03-031-2/+3
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * fix #17177 * add testcase
* asyncjs: add `then`, `catch` for promise pipelining (#16871)Timothee Cour2021-02-241-3/+66
| | | | | | * asyncjs: add then * improve tests, changelog, API * fix cryptic windows error: The parameter is incorrect * address comments
* clean up the docs of some modules under lib/js (#16579)flywind2021-01-041-15/+15
|
* Fix header inconsistencies in documentation (#11071)Zed2019-04-231-1/+1
|
* Minor fixes for asyncjs (#8894)LemonBoy2018-09-071-4/+12
| | | | | | | | | | * Minor fixes for asyncjs Mark internal procedures as used Allow .async. for more node kinds Make .async. work for nkStmtList * Fix logic error in both the async macros
* Use addPragmaAlexander Ivanov2018-03-051-5/+1
|
* Stop replacing all pragmas of a function with asyncjsAlexander Ivanov2018-03-031-1/+6
|
* Fix return (#7225)Alexander Ivanov2018-02-271-6/+8
|
* Unify async macro and futures for js and native targetsYuriy Glukhov2018-01-051-0/+4
|
* Fix docs!Alexander Ivanov2017-12-201-2/+2
|
* Fix forwardAlexander Ivanov2017-12-191-13/+18
|
* Make asyncjs Future[void] play nicely with last line discardable callsAlexander Ivanov2017-12-191-3/+29
|
* added asyncjs standard library module (#6841)Alexander Ivanov2017-12-191-0/+110