Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [backport:1.4] JS cstring null fixes (#16979) | hlaaftana | 2021-02-11 | 1 | -1/+1 |
| | | | | | * [backport:1.4] JS cstring null fixes * fix JS move string * make it look cleaner | ||||
* | fix printing negative zero in JS backend (#16505) | flywind | 2020-12-29 | 1 | -1/+3 |
| | |||||
* | fix nim js cmp fails at CT (#16473) | flywind | 2020-12-27 | 1 | -1/+6 |
| | |||||
* | Avoid creating a holey array in makeNimstrLit for JS target (#16461) | Jonah Snider | 2020-12-27 | 1 | -3/+2 |
| | | | | * Avoid creating a holey array in makeNimstrLit * Use array index instead of push | ||||
* | add simple writeStackTrace for JS backend (#16016) | flywind | 2020-11-24 | 1 | -0/+5 |
| | | | | | | | * add simple writeStackTrace for JS backend * add testcase for writeStackTrace * changelog | ||||
* | Correct all eggs (#15906) | Miran | 2020-11-10 | 1 | -1/+1 |
| | | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.". | ||||
* | Clean out jssys (#15442) | Juan Carlos | 2020-10-01 | 1 | -6/+0 |
| | |||||
* | fix js stacktraces, unify all file,line,col formatting into a single ↵ | Timothee Cour | 2020-05-05 | 1 | -4/+5 |
| | | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function | ||||
* | many bugfixes for js (#14158) | hlaaftana | 2020-04-29 | 1 | -9/+16 |
| | | | | | | | | | | | | | * many bugfixes for js fixes #12672, fixes #14153, closes #14123, closes #11331, fixes #11783, fixes #13966, fixes #14087, fixes #14117, closes #12256. mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing. * formatting fixes * CI fixes * more CI fixes | ||||
* | Error -> Defect for defects (#13908) | Jacek Sieka | 2020-04-28 | 1 | -8/+8 |
| | | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here. | ||||
* | StringStream & more stdlib modules support for JS/NimScript (#14095) | hlaaftana | 2020-04-28 | 1 | -1/+1 |
| | | | | | * StringStream & more stdlib modules support for JS/NimScript * change back pegs test in line with #14134 | ||||
* | `$(a: float)` now works consistently in nim js, avoiding printing floats as ↵ | Timothee Cour | 2020-04-27 | 1 | -0/+15 |
| | | | | | | | | | ints (#14134) * fix https://github.com/timotheecour/Nim/issues/133; $(a: float) works in nim js like in other backends * fix tests * fix test for windows that prints 1.1e17 differently than other OS | ||||
* | fixes #13032 | Araq | 2020-01-04 | 1 | -5/+5 |
| | |||||
* | Improve Math.Trunc code emit on JS, had weird whitespaces and indents (#12549) | Juan Carlos | 2019-10-30 | 1 | -10/+10 |
| | |||||
* | better tojsstr (#11954) | Andreas Rumpf | 2019-08-16 | 1 | -32/+39 |
| | | | | | * JS: rewrote toJSStr * JS: don't raise exceptions in primitives | ||||
* | fixes #10053 (#11951) | Timothee Cour | 2019-08-15 | 1 | -1/+1 |
| | |||||
* | [refactoring] remove zeroExtend and friends from the compiler builtins. (#11531) | Arne Döring | 2019-06-24 | 1 | -16/+17 |
| | | | | | * remove zeroExtend and friends from the compiler builtins. * fix jssys | ||||
* | revive #10228 (fix #9880) (#10610) | Timothee Cour | 2019-02-13 | 1 | -3/+5 |
| | | | | | | * Make index out of bounds more useful by including the 'bounds'. * fixes #9880 index out of bounds (remaining cases); revives #10228 * change err msg to: `index 3 not in 0 .. 1` | ||||
* | Guard against null exception (#10162) | rec | 2019-01-04 | 1 | -1/+1 |
| | |||||
* | Fix fat pointers, object copying, magic double evals on JS (#9411) [backport] | rec | 2018-12-04 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a test for issue #9389 * Fixes #9389. * Make object contructors copy objects properly by checking whether the expressions passed to them don't need to be copied. * Make mArrToSeq implementation actually check if a copy needs to be made. * Avoid unnecessary copy in mChr impl * Assume set constructor elements need no copy * Add a test for issue #9410 * Add a test * fix passing fat pointers (#9410) * Enhance tests * More tests and fixes * Add more (failing) tests [ci skip] * Added equality operator for fat pointers, more tests and fixes * Fix printing uninitialized strings * Fix mInc, mDec double eval, add more tests * Tests * Refactored, fixed multiple evals, revamped the tests, added missing ops * Fix ups * Fix #9643 and #9644 * add pointer normalization | ||||
* | Fix printing and comparing uninitialized strings | recloser | 2018-10-21 | 1 | -0/+3 |
| | |||||
* | JS strings have no trailing zero anymore (#8936) | LemonBoy | 2018-09-11 | 1 | -14/+6 |
| | |||||
* | fixes merge conflict | Andreas Rumpf | 2018-08-19 | 1 | -1/+1 |
|\ | |||||
| * | make more tests green | Andreas Rumpf | 2018-08-13 | 1 | -1/+1 |
| | | |||||
* | | WIP: strings/seqs based on destructors | Andreas Rumpf | 2018-07-17 | 1 | -1/+0 |
| | | |||||
* | | more progress on destructor based strings | Andreas Rumpf | 2018-07-13 | 1 | -3/+1 |
|/ | |||||
* | JS hotfix for the Internet Explorer up to version 11 | Araq | 2018-05-25 | 1 | -1/+14 |
| | |||||
* | Remove PHP backend. (#7606) | treeform | 2018-04-18 | 1 | -323/+164 |
| | | | | | | | | | | * remove php * fix * keep nimphpext * remove targetJS enum | ||||
* | Fix cmpStrings in js mode (#7604) | treeform | 2018-04-15 | 1 | -2/+2 |
| | |||||
* | fixes #6753 | Andreas Rumpf | 2017-11-22 | 1 | -6/+6 |
| | |||||
* | Fixed handling of surrogate pairs (#6332) | Yuriy Glukhov | 2017-09-05 | 1 | -8/+17 |
| | |||||
* | fixes #6096 | Araq | 2017-07-17 | 1 | -2/+2 |
| | |||||
* | fixes #5986 js backend failed to compile try ... except new syntax (#6116) | andri lim | 2017-07-17 | 1 | -1/+1 |
| | |||||
* | JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho | Andreas Rumpf | 2017-06-28 | 1 | -1/+1 |
| | |||||
* | JS codegen: produce better code for constant sets | Andreas Rumpf | 2017-05-01 | 1 | -1/+1 |
| | |||||
* | fixes #5599 (#5610) | Andreas Rumpf | 2017-03-26 | 1 | -0/+4 |
| | |||||
* | Store stack trace in exception | Yuriy Glukhov | 2016-09-04 | 1 | -0/+3 |
| | |||||
* | Fixed getCurrentException and getCurrentExceptionMsg. Closes #4635 | Yuriy Glukhov | 2016-08-29 | 1 | -9/+23 |
| | |||||
* | Reset framePtr on unhabdled exception. Dont reset on getStackTrace. | Yuriy Glukhov | 2016-08-27 | 1 | -3/+1 |
| | |||||
* | Uncaught exceptions in JS now always propagate with better stack trace. | Yuriy Glukhov | 2016-08-27 | 1 | -29/+37 |
| | |||||
* | prepare Nim codebase for upcoming parser changes | Andreas Rumpf | 2016-07-15 | 1 | -1/+1 |
| | |||||
* | Fix toJSStr for control characters | nigredo-tori | 2016-05-20 | 1 | -1/+5 |
| | | | | | fixes #4190 Add leading zero to encoded character if it is less than 0x10 | ||||
* | PHP codegen improvements | Andreas Rumpf | 2016-05-13 | 1 | -1/+4 |
| | |||||
* | PHP codegen array constructor hack. | Hans Raaf | 2016-05-11 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | | | | | Because of PHP can't have refs for literal function parameters I needed to come up with a hack such that the following code compiles with PHP target. ```nim type Foo = tuple[a: string, b: int] var foo: array [0..2, Foo] foo[0] = ("Test", 1) foo[1] = ("Me", 2) for x in foo: echo x.a echo x.b ``` | ||||
* | JS target improvements | Andreas Rumpf | 2016-04-29 | 1 | -0/+2 |
| | |||||
* | Fix for PHP mnewString() | Hans Raaf | 2016-03-06 | 1 | -3/+1 |
| | |||||
* | PHP codegen: use nimAt for PHP 5.3 compatibility | Andreas Rumpf | 2016-03-04 | 1 | -0/+6 |
| | |||||
* | php-codegen fixes | Andreas Rumpf | 2016-02-06 | 1 | -0/+5 |
| | |||||
* | PHP codegen can generate PHP classes | Andreas Rumpf | 2016-02-06 | 1 | -5/+5 |
| | |||||
* | first version of an PHP codegen | Andreas Rumpf | 2016-02-06 | 1 | -128/+271 |
| |