summary refs log tree commit diff stats
path: root/tests/js/tjsffi.nim
Commit message (Collapse)AuthorAgeFilesLines
* implement `legacy:jsNoLambdaLifting` for compatibility (#23727)ringabout2024-06-171-0/+1
|
* [JS backend] improve `discard` statement; ridding of the awkward special ↵ringabout2024-04-131-1/+1
| | | | | | | | | | variable `_` (#23498) According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/Expression_statement, some expression statements need parentheses to make it unambiguous. `_` introduced in the https://github.com/nim-lang/Nim/pull/15789 is unnecessary. We can get rid of it by adding parentheses so that object literals are not ambiguous with block statements.
* fixes #4299 #12492 #10849; lambda lifting for JS backend (#23484)ringabout2024-04-111-1/+1
| | | | | | | | fixes #4299 fixes #12492 fixes #10849 It binds `function` with `env`: `function.bind(:env)` to ease codegen for now
* make jsffi properly gensym (#22539)metagn2023-08-231-0/+6
| | | fixes #21208
* deprecate `do:` meaning `do ():` + misc cleanup (#20927)metagn2022-12-061-1/+1
| | | | | | | | | | | | | | | | | * test disable do: block lambda lifting * fix last test [skip ci] * deprecate `do:` meaning `do ():` + misc cleanup closes https://github.com/nim-lang/RFCs/issues/486 * oops * fix * no idea what could be causing nimsuggest failure other than this * ensure ci works
* js: improve tests + some docs (#16727)Timothee Cour2021-01-161-262/+164
| | | | | | | | | | | * js: improve tests * _ * _ * _ * fixup
* add `**` to jsffi (#16141)flywind2020-11-261-1/+33
| | | | | | | | | | | | | | | * fix rope index * add testcase * fix ropes format * add `**` to jsffi * add testcase * changelog Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* importjs symbol (#12218)Arne Döring2019-09-201-11/+9
| | | | | * importjs symbol * importjs warning message, minor warning fixes
* Support undefined in isNil (#9960)Alexander Ivanov2018-12-301-0/+16
|
* Support only some types as JsAssoc types (#8627)Alexander Ivanov2018-11-231-12/+12
|
* Correctly mangle `this` in the JS backend (#8853)LemonBoy2018-09-031-2/+2
| | | | | As shown in pragmagic/karax#67 using `this` as parameter name made the codegen output wrong code (and the user didn't notice the errors in the browser console).
* make JS tests greenAndreas Rumpf2018-08-131-1/+1
|
* Restore the old behavior of parsing "quote do:"Zahary Karadjov2017-08-191-2/+2
| | | | close #5845
* allow StmtLists to pass through semExprWithTypeZahary Karadjov2017-04-111-1/+7
| | | | | | This fix was necessary in order to fix the lambda lifting used in the "jsffi" module, which relies on turning nkStmtList into nkLambda in a catch-all dot operator.
* lift parameter-less do block to lambdasZahary Karadjov2017-04-101-3/+5
|
* improve the usability of the jsffi moduleZahary Karadjov2017-04-091-4/+48
| | | | | | * All JavaScript operators are usable with JsObject * The dot operators will use native JavaScript strings * Results returned from dot calls are consired discardable
* Implement RFC #4873 improvements to JavaScript FFI (#5213)Michael Jendrusch2017-01-261-0/+267