Sami Vaarala
a851d8a568
Fix segfault in call setup when valstack limit hit
3 years ago
Sami Vaarala
918045babf
Fix extras/cbor build
3 years ago
Sami Vaarala
79bc2e3b4b
Merge pull request #2457 from bluca/makefile
dist: backport makefile and pkg-config changes to v2-maintenance
3 years ago
Luca Boccassi
6ac1b74715
dist-files: generated formatted version for pkg-config file
Rather than letting users set it manually, just generate it with
the other version formats when creating the distributable sources.
(cherry picked from commit 4b205fd145
)
3 years ago
Sami Vaarala
f78586cf1a
Add duktape.pc.in to dist file set
(cherry picked from commit 587869705a
)
3 years ago
Luca Boccassi
d3d2775fdf
dist-files/Makefile.sharedlibrary: generate pkg-config file
Standard format for discoverability of shared libraries
(cherry picked from commit c6e5cf0eb5
)
3 years ago
Luca Boccassi
0cb71cb5fb
dist-files/Makefile.sharedlibrary: allow destdir and libdir to be overridden
We want to be able to install outside of a root directory,
and to specify multi-architecture library paths
(cherry picked from commit 870ce5ea70
)
3 years ago
Luca Boccassi
019df6f711
dist-files/Makefile*: allow compiler and install variables to be overridden
(cherry picked from commit 797a814efb
)
3 years ago
Luca Boccassi
77adbf7a1d
dist-files/Makefile*: use CFLAGS/CPPFLAGS/LDFLAGS
Distro builds use them to pass hardening flags and more
(cherry picked from commit 863bca6746
)
3 years ago
Sami Vaarala
f8e2281e19
Add release-workflow to v2-maintenance
3 years ago
Sami Vaarala
0c1e7659ab
Fix DUK_USE_GET_RANDOM_DOUBLE() arg handling
3 years ago
Sami Vaarala
981df50a88
Minor follow-up to bytecode big endian fix
3 years ago
sokurenko
8db46289ee
added to authors and fixed formatting
3 years ago
Vladislavs Sokurenko
f606d30c6d
fixed invalid bytecode being generated and crash on big-endian systems
3 years ago
Sami Vaarala
f02594a8d3
Reformat src-input with clang-format-12
3 years ago
Sami Vaarala
639b46964d
Add clang-format-source target, .clang-format
3 years ago
Sami Vaarala
076bcec2fd
Avoid void ptr arithmetic in duk_alloc_pool.c
4 years ago
Sami Vaarala
f7f720efc0
Update RELEASES.rst for 2.6.0 release
4 years ago
Sami Vaarala
ed641e7698
Website updates for 2.6.0 release
4 years ago
Sami Vaarala
227dcbef04
Add release notes for 2.6.0 release
4 years ago
Sami Vaarala
f8356245c5
Website tidy fix
4 years ago
Sami Vaarala
c328f6aa7b
Bump DUK_VERSION to 2.6.99
4 years ago
Sami Vaarala
fffa346eff
Bump DUK_VERSION for 2.6.0 release
4 years ago
Sami Vaarala
19312f8f56
Fix NaN normalization bug for packed tval
NaN normalization check should use a full NaN check to decide when to
normalize, even when using partial NaN initialization. The fix here
is to switch to full NaN initialization in general.
4 years ago
Sami Vaarala
1827a77f1f
Remove 64kb interactive line limit of 'duk'
4 years ago
Sami Vaarala
bc9a2748c5
Better missing PyYAML warning for configure.py
4 years ago
Sami Vaarala
c84169575a
Fix pointer handling in String replace()
4 years ago
Sami Vaarala
8329ff3d02
Fix trivial duk_logging.c compile warning
4 years ago
Sami Vaarala
13a7a77bf3
Add recursion check to JSON.parse() reviver walk
4 years ago
Sami Vaarala
fd0627b1d1
Add CBOR recursion limits and native stack check
4 years ago
Sami Vaarala
624424dd73
Minor JSON improvements
* Add 'json' to function names for consistency, e.g. duk__dec_xxx() to
duk__json_dec_xxx().
* Remove 'JSON' from recursion limit error messages, it is usually
apparent from the context and can be shared by CBOR encode/decode.
4 years ago
Sami Vaarala
631eab0445
Fix dangling pointer in coroutine yield()
4 years ago
Sami Vaarala
fd04aedd18
Fix Proxy ownKeys() postprocess array index bug
Triggered when Array.prototype has index properties, e.g. a setter.
4 years ago
Sami Vaarala
f963236763
Fix RegExp exec() result inherited index handling
4 years ago
Sami Vaarala
60b68f8ad7
Fix JSON.stringify() inherited array index bug
4 years ago
Sami Vaarala
692f37db83
Fix unstable valstack pointer in putprop
Input 'val' pointer may be a value stack pointer, which may become
stale if the variable lookup reallocates the current value stack.
This can happen e.g. in a with(proxy).
4 years ago
Sami Vaarala
39bfd5c3be
Fix hash part handling in enum sorting
If enum temporary object has a hash part, in-place key sorting
invalidates that hash. The fix is to rebuild the hash after
sorting keys.
4 years ago
Sami Vaarala
6e4d913e33
Fix memcmp() pointer overflow in string builtin
4 years ago
Sami Vaarala
5a5bdad678
Fix CBOR.encode() assertion failure
4 years ago
Sami Vaarala
468c7b4cba
Update UglifyJS dependency
Update to UglifyJS 3.9.2, and use a forked repo to avoid a sudden
break in the future.
5 years ago
Sami Vaarala
4cd52386f4
Restore creating_error after mark-and-sweep
5 years ago
Sami Vaarala
8714c064ba
Testcase for GH-2282
5 years ago
Ole André Vadla Ravnås
c5b290f088
Deactivate thread while suspended
Even though another native thread runs code on a different Duktape
thread, its code may trigger finalizers, and those always run on the
heap thread. And the heap thread may have been the one that was
suspended. This would in turn result in duk__call_thread_state_update()
failing, and finalizers being skipped, typically resulting in memory
leaks.
5 years ago
Sami Vaarala
533f6a2a57
Debugger opcode metadata fix
5 years ago
Sami Vaarala
28f01b1b40
Remove endianness assumption for PPC64
5 years ago
Sami Vaarala
34649627fc
Improve test coverage for function statements
5 years ago
Sami Vaarala
083fe1e292
Allow function declarations in strict mode
Allow unlabelled function declarations outside of top level also in strict
mode, and treat them as in non-strict mode (i.e., hoist). Previously they
were rejected with SyntaxError in strict mode. The lenient behavior is
better because it accepts more real world code. Ideally function
declarations in strict mode would have block visibility, but that's
not yet implementable.
5 years ago
Sami Vaarala
5a835769fe
Bump DUK_VERSION to 2.5.99
5 years ago
Sami Vaarala
6001888049
Merge pull request #2200 from svaarala/v2.5.0-release-prep
Release preparations for 2.5.0 release
5 years ago
Sami Vaarala
1fd2171840
Documentation updates for 2.5.0 release
* Finalize 2.5.0 release notes and RELEASES.
* Release checklist update.
* README update.
* Update website getting started example version.
5 years ago