| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
property"
This reverts commit 1b38f7b7a7709c3fe21f1adcf1d5de6b2e0e48f7.
Breaks tostring setter for some reason; we'll have to investigate...
|
|
|
|
| |
now fully rebased on the latest release
|
|
|
|
| |
TypeArray.prototype.findLast{index} (initial patch by bnoordhuis)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit 9ff482dd8d5b1b252e77712e9418b5b253f4bbf8.
Importing fix from upstream instead.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit b7367506fa05e9396e69b1db7277e011722af6b0.
Importing upstream patch instead.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit 821693c4374d9895f462fa29644905c61dbb241d.
(Importing fix from upstream instead.)
|
|
|
|
|
|
| |
Use a separate list for tracking potential can_destroy targets.
This lets us skip unnecessarily calling can_destroy for non-platform
objects, and gets rid of exponential complexity in the loop.
|
| |
|
|
|
|
|
| |
We want to check if d is larger than INT64_MAX, but the conversion
rounds it up, so we actually need to use greater-equals.
|
|
|
|
|
|
|
| |
* Expose js_create_from_ctor from QuickJS and directly use that (instead
of badly recreating it)
* Do not call defineUnforgeable twice (it is inevitably called in toJSP0,
so jsctor does not need it)
|
| |
|
| |
|
|
|
|
| |
yay
|
| |
|
|
|
|
|
| |
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...)
|