summary refs log tree commit diff stats
path: root/tests/js
Commit message (Collapse)AuthorAgeFilesLines
* Fix cmpStrings in js mode (#7604)treeform2018-04-151-0/+9
|
* make JS tests green againAndreas Rumpf2018-04-141-1/+1
|
* fixes #4470Andreas Rumpf2018-04-131-1/+11
|
* Sub second time resolution (#6978)Oscar Nihlgård2018-04-131-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add deprecation warnings to recently deprecated procs * Fix bad usage of the times module * Introduce sub second resolution * Fix usage of C's time() * Switch to nanosecond resolution * Make Time & Duration opaque again and fix some errors * Change back to TimeInterval for shorthands * Fix JS test * Fix build error for windows * Undeprecate epochTime * Documentation and minor changes * Lots of bugfixes and doc comments * Attempt to make travis & appveyor green * Fix edge cases for dealing with the local timezone * Workaround JS backend overflow/underflow bug * Use better workaround for not knowing the size of time_t * Use all available timezones for tests * Fix indentation * Add procs for accessing the fractional part of a duration * Order time units from smallest to largest since it makes more sense * Include months and years in `TimeUnit` * Review fix
* Use addPragmaAlexander Ivanov2018-03-051-1/+1
|
* Stop replacing all pragmas of a function with asyncjsAlexander Ivanov2018-03-031-0/+27
|
* Fix return (#7225)Alexander Ivanov2018-02-271-0/+2
|
* Fixes #6741 (#7131)Yuriy Glukhov2018-01-251-41/+47
|
* Unify async macro and futures for js and native targetsYuriy Glukhov2018-01-051-1/+0
|
* Fix the forward testAlexander Ivanov2017-12-201-4/+5
|
* Make asyncjs Future[void] play nicely with last line discardable callsAlexander Ivanov2017-12-191-2/+7
|
* added asyncjs standard library module (#6841)Alexander Ivanov2017-12-191-0/+26
|
* Better times module (#6552)GULPF2017-12-181-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 Keller2017-12-141-1/+1
|
* Implement codegenDecl for js (#6851)Alexander Ivanov2017-12-012-0/+21
|
* fixes #6753Andreas Rumpf2017-11-221-1/+14
|
* added a version of macros.expectLen that takes min/max valuesAraq2017-11-211-0/+0
|
* fixes #6532 array bounds check for non zero based arrays on the js backend ↵skilchen2017-11-061-0/+44
| | | | (#6550)
* make tests green againAndreas Rumpf2017-09-301-8/+8
|
* Restore the old behavior of parsing "quote do:"Zahary Karadjov2017-08-191-2/+2
| | | | close #5845
* fixes #5986 js backend failed to compile try ... except new syntax (#6116)andri lim2017-07-171-0/+13
|
* fixes a JS codegen regressionAndreas Rumpf2017-07-101-0/+18
|
* fixes #5608Andreas Rumpf2017-07-091-0/+43
|
* fixes #6035Araq2017-06-301-1/+19
|
* fixes #5517Andreas Rumpf2017-06-301-0/+15
|
* closes #5379Andreas Rumpf2017-06-291-1/+9
|
* fixes #5974Andreas Rumpf2017-06-291-1/+12
|
* fixes #4703Andreas Rumpf2017-06-291-0/+24
|
* make JS tests green on OSX on my local machine; XXX needs further investigationsAndreas Rumpf2017-06-261-1/+4
|
* fixes #5933Andreas Rumpf2017-06-031-0/+51
|
* review and merge zahary's work (#5849)zah2017-06-031-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 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
* Implementing `repr` for JS (#5578)Silvio2017-03-311-0/+422
|
* Tests: JS: Times: Fix text so that it works in timezones other then UTC+4.Konstantin Molchanov2017-03-291-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 Molchanov2017-03-271-1/+9
|
* Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion.Konstantin Molchanov2017-03-271-0/+4
|
* Tests: Times: JS: Fix test.Konstantin Molchanov2017-03-271-1/+1
|
* Tests: Times: JS: Add test for yearday attribute.Konstantin Molchanov2017-03-271-0/+13
|
* Fixes #5062 (#5527); JS: holes in enumsSilvio2017-03-154-0/+53
|
* made nodecl implicit for vars in the js backend. (#5297)Michael Jendrusch2017-01-292-1/+14
|
* Implement RFC #4873 improvements to JavaScript FFI (#5213)Michael Jendrusch2017-01-261-0/+267
|
* fix genderef of jsgen (#5274)shsnow232017-01-241-0/+20
|
* fixes #5234 (#5240)Michael Jendrusch2017-01-201-0/+23
|
* Fixes #5244 (#5245)Yuriy Glukhov2017-01-181-0/+10
|
* Removed mangling of object fields for the js target only. (#5226)Michael Jendrusch2017-01-171-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 arrayAndrea Ferretti2016-10-061-2/+6
|
* Added js console objectAndrea Ferretti2016-09-211-0/+9
|
* JS: Fixed ICE on ptr assignmentYuriy Glukhov2016-09-202-0/+15
|