Commit Graph

54 Commits

Author SHA1 Message Date
Yuriy Glukhov
d13535471b Fixed handling of surrogate pairs (#6332) 2017-09-05 16:42:41 +02:00
Araq
f127a7f7aa fixes #6096 2017-07-17 16:43:10 +02:00
andri lim
c245cfc1fd fixes #5986 js backend failed to compile try ... except new syntax (#6116) 2017-07-17 08:07:47 +02:00
Andreas Rumpf
3993718335 JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho 2017-06-28 16:18:19 +02:00
Andreas Rumpf
56a5c249c9 JS codegen: produce better code for constant sets 2017-05-01 09:30:56 +02:00
Andreas Rumpf
1268ca79e5 fixes #5599 (#5610) 2017-03-26 09:30:59 +02:00
Yuriy Glukhov
99bbda28ee Store stack trace in exception 2016-09-04 22:57:10 +03:00
Yuriy Glukhov
f12f27c185 Fixed getCurrentException and getCurrentExceptionMsg. Closes #4635 2016-08-29 13:10:06 +03:00
Yuriy Glukhov
c1dd65c01a Reset framePtr on unhabdled exception. Dont reset on getStackTrace. 2016-08-27 18:10:13 +03:00
Yuriy Glukhov
90b0a771e4 Uncaught exceptions in JS now always propagate with better stack trace. 2016-08-27 16:52:08 +03:00
Andreas Rumpf
0834cd63d9 prepare Nim codebase for upcoming parser changes 2016-07-15 12:56:03 +02:00
nigredo-tori
85c41a1398 Fix toJSStr for control characters
fixes #4190
Add leading zero to encoded character if it is less than 0x10
2016-05-20 12:35:34 +06:00
Andreas Rumpf
746132d696 PHP codegen improvements 2016-05-13 00:47:18 +02:00
Hans Raaf
d3bae50c3c PHP codegen array constructor hack.
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
```
2016-05-11 22:51:27 +02:00
Andreas Rumpf
b48e178969 JS target improvements 2016-04-29 17:56:06 +02:00
Hans Raaf
8c1dd215ac Fix for PHP mnewString() 2016-03-06 01:03:00 +01:00
Andreas Rumpf
92cf673f37 PHP codegen: use nimAt for PHP 5.3 compatibility 2016-03-04 21:59:58 +01:00
Andreas Rumpf
8ec7c0af20 php-codegen fixes 2016-02-06 19:58:28 +01:00
Andreas Rumpf
9b44ca17c2 PHP codegen can generate PHP classes 2016-02-06 15:39:56 +01:00
Andreas Rumpf
35567a1eb9 first version of an PHP codegen 2016-02-06 15:39:56 +01:00
Yuriy Glukhov
c3d09aeeac Fixed unicode strings in JS 2016-01-22 11:24:00 +02:00
Yuriy Glukhov
5f092520d1 Revert "Fixed unicode handling in JS. Fixes #3714." 2016-01-21 22:26:50 +02:00
Andreas Rumpf
1dac302975 Merge pull request #3754 from yglukhov/js-unsigned
Unsigned arith corrected for JS
2016-01-21 16:28:03 +01:00
Yuriy Glukhov
c0d0e5efd9 Unsigned arith corrected for JS 2016-01-21 17:00:42 +02:00
Yuriy Glukhov
8fab2f81e3 Fixed unicode handling in JS. Fixes #3714. 2016-01-18 13:30:21 +02:00
Yuriy Glukhov
62422b93c6 Fixed copying of nil seq in JS 2015-12-16 15:25:58 +02:00
Yuriy Glukhov
0abfbf8f0d Removed Node, NodeType and Document definitions from jssys. 2015-11-25 16:37:36 +02:00
Yuriy Glukhov
2166b7bc46 Fixed ret by var in js 2015-10-15 16:04:53 +03:00
Yuriy Glukhov
02214d8d1b Fixed JS copying. 2015-08-31 21:44:07 +03:00
Yuriy Glukhov
a5be556a4c Untyped pointers godegen changed. addr expression fixed. 2015-08-21 13:29:25 +03:00
yglukhov
50d2d54fb0 Fixed fix of #2917 2015-06-17 23:26:38 +03:00
yglukhov
5824b1c839 Fixes #2917 2015-06-17 21:16:18 +03:00
yglukhov
ffa4f8dc99 Added noUnhandledHandler 2015-06-15 23:30:09 +03:00
yglukhov
fa1f3aecce Unhandled exceptions handling brought back. 2015-06-15 23:08:38 +03:00
yglukhov
090fc33641 Fixed and slightly changed exception handling. 2015-06-15 21:49:49 +03:00
yglukhov
6436d1920c Fixed copying of aggregates in JS. 2015-06-11 23:32:08 +03:00
pdw
2ca90a20a1 lib/system/g-w - Dropped 'T' from types 2015-06-04 13:18:37 +02:00
Dominik Picheta
1e9ab3bb0a Fixes #2323. Fixes #2148. 2015-03-15 22:06:26 +00:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Araq
a9a5766c66 docgen should work again 2014-10-05 03:06:19 +02:00
Araq
30823c1ce3 make tests green 2014-08-31 15:15:26 +02:00
Araq
dbf9117c56 the big renamefest: first steps 2014-08-22 23:54:26 +02:00
Araq
4dc2925b7a JS compilation works again 2014-07-16 09:00:41 +02:00
Araq
a7911addf7 parseBiggestFloat is now builtin 2014-07-16 00:41:03 +02:00
Dominik Picheta
b0a16fb619 Fixes problems with JS code gen.
--out for JS backend now works. setLen now works, this also fixes the base64
module. getCurrentExceptionMsg now also works with exceptions thrown by
JS. log() supports a variable number of args now. Fixed some case
sensitivity issues with arrayConstr and other functions.
2014-04-11 21:36:02 +01:00
Araq
10768904eb Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Conflicts:
	lib/system/jssys.nim
2014-02-25 01:06:35 +01:00
Araq
ab72377ce6 renamed noStackFrame to asmNoStackFrame 2014-02-18 09:57:59 +01:00
Zahary Karadjov
cda92048ba fix some trivial errors in the test suite and some more regressions caused by tyTypeDesc[tyNone] 2014-02-18 02:46:14 +02:00
Zahary Karadjov
3c840102bc fix the error "only proc headers can feature pragmas" when compiling in JS mode 2014-01-23 00:02:57 +02:00
Araq
56045ad7ff bugfixes mostly JS related 2013-05-01 14:48:40 +02:00