about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Version 0.5.4bptato2024-11-084-3/+7
| |
| * Fix some C warnings; do not link pthread with threads:offbptato2024-11-083-6/+9
| |
| * Version 0.5.3bptato2024-10-283-2/+5
| |
| * update eprintbptato2024-10-281-3/+6
| |
| * jspropenumlist: avoid zero-length mallocbptato2024-10-281-3/+7
| | | | | | | | qjs-ng asserts on it
| * Version 0.5.2bptato2024-10-123-2/+5
| |
| * libregexp: fix incorrect patchbptato2024-10-122-2/+6
| | | | | | | | | | | | The loop runs until we hit a prefix byte, and unconditionally decrements the pointer. However, we started i from 0 (instead of the correct 1), meaning we always lost at least one char.
| * Version 0.5.1bptato2024-10-023-2/+5
| |
| * quickjs: fix build without threadsbptato2024-10-026-7/+16
| |
| * Version 0.5.0bptato2024-09-293-3/+13
| |
| * Switch to QuickJS-NG 0.6.1bptato2024-09-2925-11623/+10883
| | | | | | | | | | qjs-ng is more actively maintained than qjs, and has some very useful features like column tracking.
| * Version 0.4.3bptato2024-09-175-12/+24
| |
| * Version 0.4.2bptato2024-09-175-7/+40
| |
| * javascript: fix crash on missing opaquebptato2024-09-174-3/+13
| | | | | | | | | | | | | | | | | | Prototype objects don't have an opaque, so handle those. This does mean that leaving out setGlobal after having set a global type will no longer run; this behavior was undocumented and likely undesirable in all cases, so I'll call it a bug. While we're at it, fix inherited jsgetprop as well.
| * javascript: don't use SetProperty in newJSClassbptato2024-09-172-2/+2
| | | | | | | | | | SetProperty has undesirable effects like calling GetOwnProperty. Define it instead.
| * Version 0.4.1bptato2024-08-224-5/+9
| |
| * Version 0.4.0bptato2024-08-153-3/+10
| |
| * Misc. fixes & refactoringbptato2024-08-1515-106/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix JS_NewObjectClass binding * fix JS exception handling in jsgetprop * fix incorrect varargs slice end * strict exception tracking everywhere except fromjs & tojs -> fromjs & tojs call user-defined procs, which possibly do not care about exception tracking. in theory, we should error out on this, because unwinding QJS stack breaks everything. in practice, I can't even make it work in Chawan so meh * remove dependency on std/unicode -> this removes the toJS(Rune) overload. users who need it can easily add it themselves. * remove setInterruptHandler wrapper (just use the QJS API) * fromJS(int) now converts to int64 or int32 based on the architecture * move isSequence into fromJS * add some doc strings to the API
| * Version 0.3.1bptato2024-08-094-4/+5
| |
| * fromjs, tojs: fix compilation, NUL char handlingbptato2024-08-094-18/+37
| | | | | | | | | | | | | | | | * use string in ident maps instead of cstring, as the latter doesn't work on some arch's * fix toJS with strings including a NUL char * skip an unnecessary copy in enum conversion * update todo
| * Version 0.3.0bptato2024-08-094-4/+15
| |
| * javascript: allow omitting file namebptato2024-08-093-30/+32
| |
| * Use malloc_usable_size() on any OS based on GNU libcPino Toscano2024-08-091-2/+2
| | | | | | | | | | malloc_usable_size() is a GNU extension in GNU libc; hence, use it every time GNU libc is used, rather than only on Linux.
| * Fix `JS_HasException()` when `null` is thrown (#313)Kasper Isager Dalsgarð2024-08-091-5/+5
| | | | | | | | Use `JS_UNINITIALIZED` instead of `JS_NULL` when no exception is pending, so `null` can be thrown and distinguished from no exception pending.
| * Fix GC leak in `js_proxy_get()` (#302)Dmitry Volyntsev2024-08-091-1/+3
| | | | | | | | Fixes #277
| * fromjs: re-design APIbptato2024-08-0914-609/+707
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a breaking change. * fromJS now returns `Opt[void]' (effectively a `bool'), and only sets the result if the conversion was successful. An unsuccessful conversion may leave the result in an unspecified state. This makes fromJS much lighter, both in terms of generated code as well as unnecessary overhead introduced by copying. It's also not much less ergonomic than the previous signature, since the ? syntax still works. * Improved JS_UNDEFINED/global object handling: instead of special- casing the global object, we special-case the `this' value conversion so that it fixes up `undefined' automatically. * fromJS on JSDict now throws on missing properties. Default values can be set through the new .jsdefault pragma.
| * javascript: optimize slightlybptato2024-08-011-24/+1
| | | | | | | | | | * remove bounds check if actualMinArgs == 0 * skip name collision checks (the compiler will do it for us anyway)
| * Version 0.2.3bptato2024-07-284-3/+6
| |
| * javascript: fix & optimize varargs[JSValue]bptato2024-07-281-18/+22
| | | | | | | | Treat it as a 0-copy slice of the QJS argp.
| * jsutils: fix toJSValueArray on 0-len arraysbptato2024-07-281-1/+4
| |
| * Version 0.2.2bptato2024-07-183-2/+5
| |
| * libunicode: fix bindingbptato2024-07-181-1/+3
| | | | | | | | It was importing the wrong header
| * Version 0.2.1bptato2024-07-174-3/+8
| |
| * tojs: fix broken definePropertybptato2024-07-171-9/+9
| | | | | | | | This was causing memory corruption.
| * quickjs: add JSValueConst to bindingsbptato2024-06-243-136/+144
| | | | | | | | Mainly for documentation purposes.
| * Update manualbptato2024-06-241-15/+107
| |
| * Version 0.2.0bptato2024-06-223-3/+8
| |
| * quickjs: include missing bindingsbptato2024-06-223-11/+51
| | | | | | | | this should be all of them
| * Update manualbptato2024-06-223-2/+177
| |
| * quickjs: add missing bindingsbptato2024-06-213-131/+269
| |
| * jserror: add err templates for every error typebptato2024-06-211-0/+21
| |
| * Update todobptato2024-06-211-3/+0
| |
| * Update readmebptato2024-06-041-3/+4
| |
| * Version 0.1.1bptato2024-06-033-2/+5
| |
| * libunicode: various fixesbptato2024-06-032-5/+15
| | | | | | | | | | | | | | | | * fix headers * move libunicode & cutils compilation commands to libunicode wrapper * replace lre_is_space with lre_is_space_non_ascii (the inlined variant doesn't work if the module importing the wrapper is in a different directory)
| * Version 0.1.0bptato2024-06-032-1/+4
| |
| * Import Monouchabptato2024-06-0346-0/+83338
|
* Add 'lib/chagashi0/' from commit 'f5cf26b044a82a2e3cffe83bb2342b7b029f2ab8'bptato2025-01-1856-0/+94642
|\ | | | | | | | | | | git-subtree-dir: lib/chagashi0 git-subtree-mainline: ddd639280d93da1ae51af18fe22fdd315fc2d42d git-subtree-split: f5cf26b044a82a2e3cffe83bb2342b7b029f2ab8
| * Version 0.7.0bptato2024-12-075-9/+9
| |
| * Accomodate for 2024 October spec changesbptato2024-12-075-401/+424
| |