| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
We now expose some functions from QuickJS to interact with JavaScript
strings without re-encoding them into UTF-8.
|
| |
|
|
|
|
|
|
| |
* rename module (window -> winattrs, to avoid conflict with env/window)
* do not use result
* remove unused cell_ratio
|
|
|
|
|
| |
* merge dom.console & client.Console
* move client-specific stuff out of Console (into callbacks when necessary)
|
|
|
|
|
|
|
|
|
|
| |
* ips -> io/
* loader related stuff -> loader/
* tempfile -> extern/
* buffer, forkserver -> server/
* lineedit, window -> display/
* cell -> types/
* opt -> types/
|
| |
|
|
|
|
|
| |
Certain functions were returning types that do not align with the
WebIDL defined in the dom standard.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Split out parts of the JS module, because it was starting to confuse
the compiler a little.
(Peakmem is back at 750M. Interesting.)
|
|
|
|
|
|
|
| |
Also, make ActionMap use getters/hasprop instead of a table copy.
peakmem remains up +200M at 950M after commit
9991bd3393483158ab0d1b9d995f695dee3c65dc. :(
|
|
|
|
|
|
|
| |
Now that we have established that window *can* be nil.
(Though the document.location window null check is probably
unnecessary, because it is only called from scripts... but better
safe than sorry.)
|
|
|
|
|
|
|
|
| |
Add jsuffget, jsuffunc for setting LegacyUnforgeable on functions.
Misc fixes:
* define LegacyUnforgeable properties for native object shims
* replace some macros with templates
|
|
|
|
|
| |
Instead of directly appending nodes to the DOM, use a DOMBuilder
interface.
|
| |
|
| |
|
|
|
|
| |
Note: setters do not work yet.
|
|
|
|
| |
I believe this works correctly. Hopefully I'm not wrong.
|
|
|
|
| |
Instead of setting the non-standard res variable.
|
|
|
|
|
| |
Now we use Result for passing exceptions to JS. As a result, we can
finally get rid of the .jserr pragma.
|
|
|
|
|
| |
Now a promise returning nil doesn't just leave the rest of the then
chain hanging. Hooray.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quite incomplete canvas implementation. Crucially, the layout engine
can't do much with whatever is drawn because it doesn't support images
yet.
I've re-introduced multipart as well, with the FormData API. For the
append function I've also introduced a hack to the JS binding generator
that allows requesting the JSContext pointer in nim procs. Really I
should just fix the union generator thing and add support for overloading.
In conclusion, for now the only thing canvas can be used for is exporting
it as PNG and uploading it somewhere. Also, we now have PNG encoding and
decoding too. (Now if only we had sixels as well...)
|
|
|
|
| |
Files only, for now.
|
| |
|
| |
|
|
|
|
| |
Now the browser shouldn't completely die when a buffer crashes.
|
|
|
|
|
| |
Instead of creating a new function for each attribute, use a single
magic function for reflected attributes.
|
| |
|
| |
|
| |
|
|
|