| 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.
|
| |
|
|
|
|
|
| |
See https://github.com/bellard/quickjs/issues/192. (Thanks to @dchest
for the proposed fix.)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
isArray and proxy isArray can call each other indefinitely in a mutually
recursive loop.
Add a stack overflow check in the js_proxy_isArray function before calling
JS_isArray(ctx, s->target).
With ASAN the the poc.js from issue 178:
```
./qjs ./poc.js
InternalError: stack overflow
at isArray (native)
at <eval> (./poc.js:4)
```
Fix: https://github.com/bellard/quickjs/issues/178
|
| |
|
|
|
|
| |
and with that, resolve the unknown input type issue
|
| |
|
| |
|
|
|
|
| |
Operation "modularize Chawan somewhat" part 2
|
| |
|
|
|
|
| |
Operation "modularize Chawan somewhat" part 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Import punycode, as it has been removed from stdlib.
* Fix some syntax errors
* Apparently you can no longer compare distinct pointers with nil.
Add explicit comparisons with typeof(nil) instead.
* htmlparser: rename _ to other, as semantics of _ have changed.
(Quite a shame, it looked better with _. Oh well.)
* Explicitly specify mm:refc, as the browser OOMs with orc for
some reason.
Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8.
(<1.6.8 it's broken & wontfix.)
|
|
|
|
|
|
|
| |
This allows us to greatly simplify exec(Regex). In particular, we
no longer have to convert any line containing non-ascii characters
into UTF-16 (which was a significant inefficiency in regex search
until now).
|
|
|
|
| |
Add a JS_GetClassID function to QJS instead.
|
|
|
|
| |
I believe this works correctly. Hopefully I'm not wrong.
|
|
|
|
| |
Taken from txiki.js, so it includes zamofex's top-level await patch.
|
| |
|
|
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...)
|