Commit Graph

50 Commits

Author SHA1 Message Date
LemonBoy
a3fb0a769c Try/Catch support for native JS exceptions (#8955)
* Try/Catch support for native JS exceptions

* Better tests
2018-10-09 19:51:29 +02:00
LemonBoy
90025e242d Minor fixes for asyncjs (#8894)
* Minor fixes for asyncjs

Mark internal procedures as used
Allow .async. for more node kinds
Make .async. work for nkStmtList

* Fix logic error in both the async macros
2018-09-07 16:42:38 +02:00
Dominik Picheta
d06da9ccf0 Exports dom.Style (#8444) 2018-09-01 00:24:09 +02:00
Oscar Nihlgård
b77d910e4e Remove broken push pragma from jscore (#8414) 2018-08-17 11:11:55 +02:00
hlaaf
9ed671b2fe Replace NotString with typeclass in jsffi (#8128) 2018-06-27 21:43:45 +02:00
Dominik Picheta
6b5ad56ab3 Adds TextAreaElement type. 2018-05-14 13:03:18 +02:00
Dominik Picheta
5fcfc43a20 Adds onpopstate and proc related to Events to dom module. 2018-05-14 13:03:18 +02:00
Arne Döring
efae366857 rename SomeReal to SomeFloat (#7617)
* rename SomeReal to SomeFloat
* added changelog entry
2018-04-15 19:59:11 +02:00
zah
e3037a2f33 Support code hot reloading for JavaScript projects (#7362)
* Support code hot reloading for JavaScript projects

* Add some missing JavaScript symbols and APIs

* fix the Travis build

* (review changes) remove the js type from the standard library as it doesn't follow NEP-1

* more additions to the DOM module

* Follow NEP-1 in jsffi; spell 'hot code reloading' correctly

* introduce a jscore module

* Document jscore module.

* readded js type

* Remove the '$' operator that doesn't behave
2018-04-13 19:08:43 +02:00
treeform
577025c319 Add some missing things to dom.nim
Add window.performance, window.performance.now(), window.devicePixelRatio, window.scrollX and Y, style.overflowX and Y, node.getBoundingRect.
2018-03-29 05:31:19 -07:00
Alexander Ivanov
b6c69dd45e Use addPragma 2018-03-05 10:28:17 +02:00
Alexander Ivanov
3bffbf5a4d Stop replacing all pragmas of a function with asyncjs 2018-03-03 16:53:28 +02:00
Alexander Ivanov
9c7374abcd Fix return (#7225) 2018-02-27 15:23:19 +01:00
Dominik Picheta
b754bfabb6 Merge pull request #7023 from yglukhov/unify-async
Unify async macro and futures for js and native targets
2018-01-17 15:06:32 +00:00
Renaud Chénard
a2b7fcdb4d Use generic for 'stateObject' in func 'pushState' 2018-01-14 23:12:59 +01:00
grazil
d5cd8e6f71 add missing methods in js backend 2018-01-11 14:16:48 +01:00
Yuriy Glukhov
c93655e8b4 Unify async macro and futures for js and native targets 2018-01-05 16:40:51 +02:00
Alexander Ivanov
eba544996d Fix docs! 2017-12-20 14:11:22 +02:00
Alexander Ivanov
b3dfc93bee Fix forward 2017-12-19 20:50:37 +02:00
Alexander Ivanov
7f6afa9e9b Make asyncjs Future[void] play nicely with last line discardable calls 2017-12-19 13:57:37 +02:00
Alexander Ivanov
a9ba02e8c9 added asyncjs standard library module (#6841) 2017-12-19 00:34:54 +01:00
konqoro
422c117a77 Small fix for js dom 2017-12-13 16:14:01 +02:00
Andreas Rumpf
33814cf63e language change: change how the experimental dot operators work 2017-11-29 13:31:31 +01:00
Andreas Rumpf
414e7eff04 make tests green again 2017-09-26 23:07:37 +02:00
Zahary Karadjov
7ad115f530 Restore the old behavior of parsing "quote do:"
close #5845
2017-08-19 08:57:43 +02:00
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
28f3b3d3a7 Add some extra methods and fields to DOM module. 2017-04-06 21:16:17 +02:00
Dominik Picheta
172a9c8e97 Implement touch event types/procs in DOM module. 2017-03-27 21:14:06 +02:00
Dominik Picheta
f2ca6021dc Implement requestAnimationFrame and cancelAnimationFrame in dom module. 2017-03-23 21:34:32 +01:00
Michael Jendrusch
536015ee7b Implement RFC #4873 improvements to JavaScript FFI (#5213) 2017-01-26 00:07:30 +01:00
Andrea Ferretti
f0308e9bcf New version of js console using macros - avoid the use of .apply method 2016-10-06 11:35:29 +02:00
Andrea Ferretti
4c52239394 Updated js console logging to avoid wrapping into array 2016-10-06 10:54:52 +02:00
Andrea Ferretti
25ee55adfc Update to allow varargs in js console logging 2016-09-22 11:39:24 +02:00
Andrea Ferretti
693b2b0f5d Added js console object 2016-09-21 17:35:45 +02:00
Dominik Picheta
2e5b19e479 Added some useful JS procs to DOM module. 2016-05-10 12:50:18 +01:00
Yuriy Glukhov
c0754beb22 Dom refactoring 2015-11-25 19:27:13 +02:00
Perelandric
e0ecaa86ba Reverted all changes 2015-06-04 13:18:42 +02:00
pdw
6e8e3fdd23 lib/js - Dropped 'T' from types 2015-06-04 13:17:09 +02:00
yglukhov
3161f904a5 Added body and head properties to document. 2015-04-29 10:01:26 +03:00
yglukhov
bf2abe2de2 DOM types renamed. 2015-04-06 14:36:36 +03:00
yglukhov
9495a3caba Correct dom objects inheritance. 2015-04-01 13:50:59 +03:00
d3m1gd
134bfb668c Some additions to dom.nim
Missing functions and fields for various dom elements/events.
2015-02-20 19:30:12 +01:00
Araq
a9a5766c66 docgen should work again 2014-10-05 03:06:19 +02:00
Dominik Picheta
69d4eb14bc Some docgen fixes. 2014-09-13 15:35:09 +01:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Grzegorz Adam Hankiewicz
2353b5633e Hyperlinks back JavaScript target. 2014-06-21 23:48:41 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Simon Hafner
1785c6877b EcmaScript => JS. Fixes #330
No one calls it EcmaScript anymore.
2013-02-15 11:08:30 -06:00