summary refs log tree commit diff stats
path: root/tests/js
Commit message (Collapse)AuthorAgeFilesLines
* Field checks for everybody (#8957)LemonBoy2018-10-092-0/+72
| | | | | | | | | | | | | | | | | | | | | * Field checks for JS backend * Clean nkCall nodes with no arguments Generating a nkEmpty in place of no arguments makes no sense form the AST point of view and also trips up the VM codegen. * Field checks for VM backend * Test case for #6612 This patchset fixes #6612 * Add test case for LHS double evaluation * Prevent LHS double-eval for JS backend * Prevent double evaluation in VM backend
* Try/Catch support for native JS exceptions (#8955)LemonBoy2018-10-091-0/+31
| | | | | | * Try/Catch support for native JS exceptions * Better tests
* Fix add(string, cstring) when the lhs is null (#8951)LemonBoy2018-09-121-0/+4
|
* Fix concat behaviour for uninitialized strings (#8950)LemonBoy2018-09-111-0/+5
|
* Fix insert/delete for JS (#8915)LemonBoy2018-09-081-0/+12
| | | Fixes #8914
* Fix AST generation for case statements (#8908)LemonBoy2018-09-071-0/+7
| | | Fixes #7534
* Sync line generation between C and JS backends (#8888)LemonBoy2018-09-071-0/+26
| | | Fixes #7224
* Automatic deref for everything but pointers in asm/emit (#8891)LemonBoy2018-09-073-5/+26
| | | Fixes #7249
* Correctly mangle `this` in the JS backend (#8853)LemonBoy2018-09-032-2/+25
| | | | | 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).
* fix items for cstring for the JS target; makes tests green againAraq2018-09-031-2/+2
|
* Cleanup ttimes (#8714)Oscar Nihlgård2018-08-221-43/+0
| | | | | | * Refactor fromWinTime * Cleanup ttimes
* times.Timezone changes (#8527)Oscar Nihlgård2018-08-171-5/+5
| | | | | | | | | | * Use floorDiv in times.nim * New implementation of times.Timezone * Tweak doc comments * Fix typo
* make JS tests greenAndreas Rumpf2018-08-133-3/+3
|
* New implementations of times.parse & times.format (#8094)Oscar Nihlgård2018-07-091-3/+3
|
* Testament should run tests with no action (#8232)genotrance2018-07-081-0/+3
| | | | | | * Testament should run tests with no action * Fix strutils tests for JS
* 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
|