Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix the forward test | Alexander Ivanov | 2017-12-20 | 1 | -4/+5 |
| | |||||
* | Make asyncjs Future[void] play nicely with last line discardable calls | Alexander Ivanov | 2017-12-19 | 1 | -2/+7 |
| | |||||
* | added asyncjs standard library module (#6841) | Alexander Ivanov | 2017-12-19 | 1 | -0/+26 |
| | |||||
* | Better times module (#6552) | GULPF | 2017-12-18 | 1 | -19/+34 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First work on better timezones * Update tests to new api. Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead). * Deprecate getLocaltime & getGmTime * Add `now()` as a shorthand for GetTIme().inZone(Local) * Add FedericoCeratto's timezone tests (#6548) * Run more tests in all timezones * Make month enum start at 1 instead of 0 * Deprecate getDayOfWeekJulian * Fix issues with gc safety * Rename TimeInfo => DateTime * Fixes #6465 * Improve isLeapYear * FIx handling negative adjTime * Cleanup: - deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float) - added missing doc comments - removed some unnecessary JS specific implementations * Fix misstake in JS `-` for Time * Update usage of TimeEffect * Removed unecessary use of `difftime` * JS fix for local tz * Fix subtraction of months * Fix `days` field in `toTimeInterval` * Style and docs * Fix getDayOfYear for real this time... * Fix handling of adding/subtracting time across dst transitions * Fix some bad usage of the times module in the stdlib * Revert to use proper time resoultion for seeding in random.nim * Move deprecated procs to bottom of file * Always use `epochTime` in `randomize` * Remove TimeInterval normalization * Fixes #6905 * Fix getDayOfWeek for year < 1 * Export toEpochDay/fromEpochDay and change year/month/monthday order * Add asserts for checking that the monthday is valid * Fix some remaining ambiguous references to `Time` * Fix ambiguous reference to Time | ||||
* | Improved collection-to-string behavior (#6825) | Fabian Keller | 2017-12-14 | 1 | -1/+1 |
| | |||||
* | Implement codegenDecl for js (#6851) | Alexander Ivanov | 2017-12-01 | 2 | -0/+21 |
| | |||||
* | fixes #6753 | Andreas Rumpf | 2017-11-22 | 1 | -1/+14 |
| | |||||
* | added a version of macros.expectLen that takes min/max values | Araq | 2017-11-21 | 1 | -0/+0 |
| | |||||
* | fixes #6532 array bounds check for non zero based arrays on the js backend ↵ | skilchen | 2017-11-06 | 1 | -0/+44 |
| | | | | (#6550) | ||||
* | make tests green again | Andreas Rumpf | 2017-09-30 | 1 | -8/+8 |
| | |||||
* | Restore the old behavior of parsing "quote do:" | Zahary Karadjov | 2017-08-19 | 1 | -2/+2 |
| | | | | close #5845 | ||||
* | fixes #5986 js backend failed to compile try ... except new syntax (#6116) | andri lim | 2017-07-17 | 1 | -0/+13 |
| | |||||
* | fixes a JS codegen regression | Andreas Rumpf | 2017-07-10 | 1 | -0/+18 |
| | |||||
* | fixes #5608 | Andreas Rumpf | 2017-07-09 | 1 | -0/+43 |
| | |||||
* | fixes #6035 | Araq | 2017-06-30 | 1 | -1/+19 |
| | |||||
* | fixes #5517 | Andreas Rumpf | 2017-06-30 | 1 | -0/+15 |
| | |||||
* | closes #5379 | Andreas Rumpf | 2017-06-29 | 1 | -1/+9 |
| | |||||
* | fixes #5974 | Andreas Rumpf | 2017-06-29 | 1 | -1/+12 |
| | |||||
* | fixes #4703 | Andreas Rumpf | 2017-06-29 | 1 | -0/+24 |
| | |||||
* | make JS tests green on OSX on my local machine; XXX needs further investigations | Andreas Rumpf | 2017-06-26 | 1 | -1/+4 |
| | |||||
* | fixes #5933 | Andreas Rumpf | 2017-06-03 | 1 | -0/+51 |
| | |||||
* | review and merge zahary's work (#5849) | zah | 2017-06-03 | 1 | -0/+10 |
| | | | | | | | | | * proper indentation for the generated JS code * improved dead-code elimination for JavaScript * test the JS dead-code elimination A new test spec has been added - "maxcodesize". It specifies the maximum size of the generated code in bytes. | ||||
* | allow StmtLists to pass through semExprWithType | Zahary Karadjov | 2017-04-11 | 1 | -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 lambdas | Zahary Karadjov | 2017-04-10 | 1 | -3/+5 |
| | |||||
* | improve the usability of the jsffi module | Zahary Karadjov | 2017-04-09 | 1 | -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 | ||||
* | Implementing `repr` for JS (#5578) | Silvio | 2017-03-31 | 1 | -0/+422 |
| | |||||
* | Tests: JS: Times: Fix text so that it works in timezones other then UTC+4. | Konstantin Molchanov | 2017-03-29 | 1 | -3/+4 |
| | | | | `parse` returns TimeInfo with the local timezone, which may not be the same as the one in the original string. To compare the moments encoded in the original string and returned by `parse`, we normalize them to UTC. | ||||
* | Tests: Times: JS: Add test for timestamp persistence. | Konstantin Molchanov | 2017-03-27 | 1 | -1/+9 |
| | |||||
* | Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion. | Konstantin Molchanov | 2017-03-27 | 1 | -0/+4 |
| | |||||
* | Tests: Times: JS: Fix test. | Konstantin Molchanov | 2017-03-27 | 1 | -1/+1 |
| | |||||
* | Tests: Times: JS: Add test for yearday attribute. | Konstantin Molchanov | 2017-03-27 | 1 | -0/+13 |
| | |||||
* | Fixes #5062 (#5527); JS: holes in enums | Silvio | 2017-03-15 | 4 | -0/+53 |
| | |||||
* | made nodecl implicit for vars in the js backend. (#5297) | Michael Jendrusch | 2017-01-29 | 2 | -1/+14 |
| | |||||
* | Implement RFC #4873 improvements to JavaScript FFI (#5213) | Michael Jendrusch | 2017-01-26 | 1 | -0/+267 |
| | |||||
* | fix genderef of jsgen (#5274) | shsnow23 | 2017-01-24 | 1 | -0/+20 |
| | |||||
* | fixes #5234 (#5240) | Michael Jendrusch | 2017-01-20 | 1 | -0/+23 |
| | |||||
* | Fixes #5244 (#5245) | Yuriy Glukhov | 2017-01-18 | 1 | -0/+10 |
| | |||||
* | Removed mangling of object fields for the js target only. (#5226) | Michael Jendrusch | 2017-01-17 | 1 | -0/+83 |
| | | | | | | | | * removed mangling of object fields for the js target only. * changed default mangling behaviour for the php target as well. * Added test for unorthodox field names (reserved words and operators). Adjusted field accessors and object constructors / new to be ECMAScript first edition compatible, when using fieldnames which are reserved words. | ||||
* | Updated js console logging to avoid wrapping into array | Andrea Ferretti | 2016-10-06 | 1 | -2/+6 |
| | |||||
* | Added js console object | Andrea Ferretti | 2016-09-21 | 1 | -0/+9 |
| | |||||
* | JS: Fixed ICE on ptr assignment | Yuriy Glukhov | 2016-09-20 | 2 | -0/+15 |
| | |||||
* | Fixed another test to expect new unittest output | Felix Krause | 2016-08-24 | 1 | -1/+3 |
| | |||||
* | fixes #4471 | Andreas Rumpf | 2016-07-12 | 1 | -0/+11 |
| | |||||
* | moved random procs from math to its own module (breaking change) | Andreas Rumpf | 2016-05-30 | 1 | -1/+1 |
| | |||||
* | Fixes #4222 | Yuriy Glukhov | 2016-05-26 | 1 | -1/+12 |
| | |||||
* | Slightly better test case | Dmitry Polienko | 2016-05-20 | 1 | -1/+3 |
| | | | | Tests identity rather than exact output. | ||||
* | Fix toJSStr for control characters | nigredo-tori | 2016-05-20 | 1 | -0/+6 |
| | | | | | fixes #4190 Add leading zero to encoded character if it is less than 0x10 | ||||
* | Added js closures test. Fixes #3132. | Yuriy Glukhov | 2016-04-07 | 1 | -0/+51 |
| | |||||
* | Fixed unicode strings in JS | Yuriy Glukhov | 2016-01-22 | 1 | -15/+69 |
| | |||||
* | fixes #3584 | Araq | 2016-01-18 | 1 | -0/+12 |
| |