Zahary Karadjov
03770daba4
allow StmtLists to pass through semExprWithType
...
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.
2017-04-11 02:22:13 +03:00
Zahary Karadjov
a3f19c87fb
lift parameter-less do block to lambdas
2017-04-10 23:58:05 +03:00
Zahary Karadjov
48a1a54d1c
improve the usability of the jsffi module
...
* All JavaScript operators are usable with JsObject
* The dot operators will use native JavaScript strings
* Results returned from dot calls are consired discardable
2017-04-09 23:04:55 +03:00
Dominik Picheta
cdfcc12529
Implement json.% for enums.
2017-04-06 21:56:20 +02:00
Dominik Picheta
28f3b3d3a7
Add some extra methods and fields to DOM module.
2017-04-06 21:16:17 +02:00
Anatoly Galiulin
3374bcb373
parsecfg: handle streams and strings when saving or loading configuration ( #5554 )
2017-04-06 08:10:08 +02:00
John Scillieri
4ba6f9808e
Update 'compiles' documentation to remove not ( #5666 )
...
Documentation for proc compiles showed a broken/unintuitive example (unless i missed something)
2017-04-05 23:50:48 +02:00
Andreas Rumpf
bfaa329680
Merge branch 'devel' into araq
2017-04-04 13:38:41 +02:00
Andreas Rumpf
9aeccda262
system.nim: make min/max take openArrays, not varargs (breaking change)
2017-04-04 09:34:16 +02:00
Emery Hemingway
dd7ebb2c95
fixup! support for the Genode OS framework ( #5653 )
...
Allocate thread metadata at createThread.
2017-04-02 23:48:23 +02:00
Andreas Rumpf
c65ff403b2
memory manager: use less memory; corruption prevention
2017-04-02 23:41:29 +02:00
Andreas Rumpf
f520dfbfab
remove en-dash from the language
2017-04-02 23:41:29 +02:00
Daniil Yarancev
009277856e
Fix #5611
2017-04-02 18:52:14 +03:00
Eugene Kabanov
316b680f5d
Proper fix for osproc.nim on Android ( #5646 )
2017-04-02 08:32:54 +02:00
Emery Hemingway
7e351fc7fa
support for the Genode OS framework ( #5560 )
2017-03-31 23:13:06 +02:00
wt
c480505797
Fix wrong value range of ntohs ... ( #5390 )
2017-03-31 22:13:06 +02:00
Silvio
2946c7a4b9
Implementing repr for JS ( #5578 )
2017-03-31 22:00:48 +02:00
Andreas Rumpf
529609f7ed
Merge remote-tracking branch 'origin/concepts-rebased' into araq
2017-03-31 16:40:21 +02:00
Andreas Rumpf
0ccbc82344
Merge branch 'devel' into araq
2017-03-30 23:56:22 +02:00
Dominik Picheta
6edd100619
Merge pull request #5614 from moigagoo/fix_time_offset_in_times_js
...
Times: JS: Remove implicit UTC convesion.
2017-03-30 18:10:11 +02:00
Araq
30c99a8440
fixes #5628
2017-03-30 12:53:32 +02:00
Zahary Karadjov
a74ad869e9
requested code review changes
2017-03-29 16:15:30 +03:00
Konstantin Molchanov
04646052ab
Merge branch 'devel' into fix_time_offset_in_times_js
2017-03-29 16:54:36 +04:00
Konstantin Molchanov
a9044117e9
Stdlib: Times: Use JS's "new Date" to convert TimeInfo to Time.
...
To use JS's Date creation from string, I moved the TimeInfo formatting code above the toTime proc declaration. Also, I changed the argument type for newDate from string to cstring for it to work.
2017-03-29 16:40:52 +04:00
Konstantin Molchanov
875e344be0
JS: Add yearday calculation to getLocalTime and getGMTime, so that yearday is not 0 for TimeInfo instances under JS backend. ( #5616 )
2017-03-29 12:36:04 +02:00
Andreas Rumpf
3ffde39cf4
attempt to make travis OSX tests green and mandatory
2017-03-29 10:14:03 +02:00
Andreas Rumpf
a88a909565
fixes #5625
2017-03-29 09:05:45 +02:00
Tomas Vojtisek
27a291c09e
Update threadpool.nim ( #5624 )
2017-03-29 08:36:10 +02:00
Eugene Kabanov
977758fe06
Fix posix.nim dirent structure to be more compatible with OSes. ( #5623 )
2017-03-29 08:34:07 +02:00
Zahary Karadjov
01207b6cfd
restore the T1-T9 types and clarify how generic concepts work
2017-03-28 14:19:32 +03:00
Dominik Picheta
172a9c8e97
Implement touch event types/procs in DOM module.
2017-03-27 21:14:06 +02:00
Dominik Picheta
e0bb65e45c
Fixes the order in which FutureVar and return completions are made.
...
This caused a pretty bad and subtle bug in the asynchttpserver.
As far as I can understand, the fact that the returned future was
being completed first meant that the underlying async procedure
could continue running and thus clean() the FutureVar
and request new data. The control then went back and the
FutureVar was completed again causing an error.
2017-03-27 21:11:48 +02:00
Konstantin Molchanov
2351d5d314
Merge branch 'calculate_yearday_in_timeinfo_js' into fix_time_offset_in_times_js
2017-03-27 21:38:19 +04:00
Andreas Rumpf
159643824b
fixes #3847 ( #5609 )
2017-03-27 09:39:46 +02:00
Konstantin Molchanov
bef86f55ce
Times: JS: Add yearday to TimeInfo.
...
Add yearday calculation to getLocalTime and getGMTime, so that yearday is not 0 for TimeInfo instances under JS backend.
Yearday 0 has no sense and contradicts the behaviour under C backend, where yearday is an int from 1 to 365, i.e. cannot be 0 even theoretically.
2017-03-27 00:14:48 +04:00
Konstantin Molchanov
3ebffb2a00
Times: JS: Remove implicit UTC convesion.
...
The conversion would produce incorrect timestamp.
2017-03-26 23:50:02 +04:00
pgkos
481d8ba24a
Fix segfault in db_mysql fastRows ( #5605 )
2017-03-26 09:42:15 +02:00
Andreas Rumpf
1268ca79e5
fixes #5599 ( #5610 )
2017-03-26 09:30:59 +02:00
Arne Döring
21b03257ef
update linenoise ( #5357 )
2017-03-25 09:28:26 +01:00
Konstantin Molchanov
80ffae62fb
JS: Times: Add timezone prop to TimeInfo. ( #5581 )
2017-03-25 09:26:34 +01:00
Zahary Karadjov
9574d318ae
use lower-case proc names
2017-03-24 17:03:55 +02:00
Zahary Karadjov
52b241fd57
new type traits: GenericHead and StripGenericParams
2017-03-24 16:59:47 +02:00
Dmitriy Fomichev
268a1f7cfd
Deques compilation error fix ( #5591 )
2017-03-24 00:09:51 +01:00
Arne Döring
d4b4cad4ea
Added few documentation lines for the unsafeAddr operator. ( #5362 )
2017-03-23 23:49:07 +01:00
Anatoly Galiulin
434a7c8426
Fix posix version of moveFile between different filesystems ( #5580 )
2017-03-23 23:40:03 +01:00
Dominik Picheta
0cad2896ae
Implement asyncfile.readToStream.
2017-03-23 21:34:53 +01:00
Dominik Picheta
f2ca6021dc
Implement requestAnimationFrame and cancelAnimationFrame in dom module.
2017-03-23 21:34:32 +01:00
Dominik Picheta
d221e6a35c
Improve os.getFileSize documentation to specify the unit.
2017-03-23 21:34:03 +01:00
Eugene Kabanov
254fbcc548
Fixes #4719 . ( #5585 )
2017-03-23 16:13:38 +01:00
Ruslan Mustakov
310b73b556
Reduce the scope of stackTrace var ( #5583 )
...
Fixes #5571 .
2017-03-22 01:06:05 +01:00