Nico Weber
2191ec591f
LibJS: Make Date's tuple constructor correctly handle out-of-range arguments
...
Milliseconds need extra handling, but everything else just works
now that mktime() handles this case.
2020-08-24 18:20:07 +02:00
Nico Weber
116c0c0ab3
LibJS: Implement Date's string constructor
...
... by calling Date.parse().
With this, dates on http://45.33.8.238/ and
http://45.33.8.238/linux/summary.html are correctly converted to local
time :^)
2020-08-21 21:12:54 +02:00
Nico Weber
d4d9222eea
LibJS: Basic implementation of most of Date's constructor arguments
...
The constructor with a string argument isn't implemented yet, but
this implements the other variants.
The timestamp constructor doens't handle negative timestamps correctly.
Out-of-bound and invalid arguments aren't handled correctly.
2020-08-20 20:53:43 +02:00
Matthew Olsson
1ef573eb30
LibJS: Indent tests with 4 spaces instead of 2
2020-07-06 23:40:35 +02:00
Matthew Olsson
6d58c48c2f
test-js: Use prettier and format all files
2020-07-06 23:40:35 +02:00
Matthew Olsson
3f97d75778
LibJS: Convert most builtin tests to new system
2020-07-06 23:40:35 +02:00
Matthew Olsson
4c48c9d69d
LibJS: Reorganize tests into subfolders
2020-07-03 19:30:13 +02:00