| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
qjs-ng asserts on it
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
qjs-ng is more actively maintained than qjs, and has some very useful
features like column tracking.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
SetProperty has undesirable effects like calling GetOwnProperty.
Define it instead.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
malloc_usable_size() is a GNU extension in GNU libc; hence, use it
every time GNU libc is used, rather than only on Linux.
|
| |
| |
| |
| | |
Use `JS_UNINITIALIZED` instead of `JS_NULL` when no exception is pending, so `null` can be thrown and distinguished from no exception pending.
|
| |
| |
| |
| | |
Fixes #277
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
* remove bounds check if actualMinArgs == 0
* skip name collision checks (the compiler will do it for us anyway)
|
| | |
|
| |
| |
| |
| | |
Treat it as a 0-copy slice of the QJS argp.
|
| | |
|
| | |
|
| |
| |
| |
| | |
It was importing the wrong header
|
| | |
|
| |
| |
| |
| | |
This was causing memory corruption.
|
| |
| |
| |
| | |
Mainly for documentation purposes.
|
| | |
|
| | |
|
| |
| |
| |
| | |
this should be all of them
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* 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)
|
| | |
|
| |
|
|\
| |
| |
| |
| |
| | |
git-subtree-dir: lib/chagashi0
git-subtree-mainline: ddd639280d93da1ae51af18fe22fdd315fc2d42d
git-subtree-split: f5cf26b044a82a2e3cffe83bb2342b7b029f2ab8
|
| | |
|
| | |
|