Sami Vaarala
ec6fa10a86
Merge pull request #2108 from svaarala/fix-call-proxy-trap-gh2032
Bump native recursion count early in call handling
5 years ago
Sami Vaarala
15f08771b8
Releases: call handling trap recursion
5 years ago
Sami Vaarala
329d9a7afa
Add bug test for GH-2032
5 years ago
Sami Vaarala
3700f40cc7
Bump call recursion depth as early as possible
This avoids situations where call handling reads a property and triggers
a recursive call through a Proxy before the C call recursion depth is
increased. This may then lead to unbounded C recursion without an
effective call stack limit.
5 years ago
Sami Vaarala
d724eb08ab
Merge pull request #2107 from svaarala/examples-extras-nonplain-buffers
Accept non-plain buffers in some examples/extras, eventloop example buffer fixes
5 years ago
Sami Vaarala
f3d42f8af6
Releases: examples/extras buffer improvements
5 years ago
Sami Vaarala
453f0ff5ee
Test fixes for changed 'duk' behavior
5 years ago
Sami Vaarala
882b6587f5
Buffer handling improvements in examples/extras
* Allow non-plain buffers in some examples/extras.
* Eventloop .write() binding buffer handling fix, relied on
obsolete Duktape.Buffer.
* Client socket example fix.
5 years ago
Sami Vaarala
51ce15dc35
Merge pull request #2106 from svaarala/fix-assert-gh2021
Avoid potential out-of-memory on call stack unwind by preallocating env property table
5 years ago
Sami Vaarala
2801840cc9
Releases: env property table prealloc
5 years ago
Sami Vaarala
514b6e1b86
Avoid depending on 'time' command in time_multi.py
6 years ago
Sami Vaarala
4a6ee116f3
Perf test for scope object creation
6 years ago
Sami Vaarala
d3ae4b56a8
Bug testcase for GH-2021
6 years ago
Sami Vaarala
391f600aea
Preallocate env record property table
This avoids a possible out-of-memory when the env is closed in unwind.
Unwind code, which may happen due to an error throw, must not throw.
6 years ago
Sami Vaarala
f5c3fa3aa7
Merge pull request #2103 from svaarala/fix-bound-assert
Fix incorrect assert (with no underlying bug) when bound function chain resolves to a Proxy object
6 years ago
Sami Vaarala
bfc887364a
Releases: Proxy bound function assert
6 years ago
Sami Vaarala
20f275e2e2
Add bug testcase for GH-2049
6 years ago
Sami Vaarala
0eba88aa4b
Fix incorrect assert for bound function handling
Bound function chain must end in an ECMAScript function, a Duktape/C
function, or a Proxy. The Proxy case was not included in the final
assert, causing an (incorrect) assertion failure, GH-2049.
There's no underlying bug: Proxy functions as bound function targets
are supported by call handling.
6 years ago
Sami Vaarala
c294916919
Merge pull request #2102 from svaarala/api-require-constructor-call
Add public API calls duk_require_constructable() and duk_require_constructor_call()
6 years ago
Sami Vaarala
4de49f9ab6
Releases: constructable API calls
6 years ago
Sami Vaarala
6afffed6b8
Documentation for API additions
6 years ago
Sami Vaarala
f0e73fdcc1
Testcase updates for new public APIs
6 years ago
Sami Vaarala
6a1fcbcd76
Merge pull request #2101 from svaarala/docker-first-draft
Add derived Docker images and Makefile targets for dist-src and dist-site from master
6 years ago
Sami Vaarala
4d2defa24e
Add derived Docker images and Makefile targets
* Add Makefile target 'docker-images' to build the images, in the
desired order.
* Add Makefile targets and Docker images for source and website dist
from (public) master.
* Trivial .gitignore update.
6 years ago
Sami Vaarala
e43ce06e71
Merge pull request #2100 from svaarala/misc-test-fixes
Miscellaneous build and test fixes
6 years ago
Sami Vaarala
4e49f8c04f
Merge pull request #2099 from svaarala/readme-update
Minor README updates
6 years ago
Sami Vaarala
d50284b017
Miscellaneous build and test fixes
* Use lodash snapshot, fixes lodashtest.
* Fix underscore test shim.
* Emscripten option updates to make dukweb.js and Emscripten tests
work again.
* Update emscripten-status.rst.
6 years ago
Sami Vaarala
4ff60aa5f8
README updates
6 years ago
Sami Vaarala
cb8d8430e1
Merge pull request #2098 from svaarala/html-charset-meta-fixes
Consistent meta charset for HTML pages
6 years ago
Sami Vaarala
be2328806a
Consistent meta charset for HTML pages
6 years ago
Sami Vaarala
e816912cbe
Merge pull request #2096 from svaarala/docker-base-image
Add a base Docker image for building, tests, etc
6 years ago
Sami Vaarala
a930dc9da5
Add a base Docker image for building, tests, etc
* duktape-base-ubuntu-18.04: Base image suitable for all Duktape
compilation, test runs, website builds, etc. Ubuntu 18.04.xx is
LTS and supported until 2028.
* Trivial .gitignore update.
6 years ago
Sami Vaarala
8b9333b4ed
API duk_require_{constructor_call,constructable}()
6 years ago
Sami Vaarala
a30a14f6c3
Merge pull request #2095 from svaarala/fix-cbor-64bit-tag
Fix CBOR decoding of 64-bit tag values in the CBOR extra
6 years ago
Sami Vaarala
e0abc19e80
Releases: CBOR extra 64-bit tags
6 years ago
Sami Vaarala
f1bac434c3
Testcase for CBOR 64-bit tag
6 years ago
Sami Vaarala
5710782ac6
Allow 64-bit (ignored) tag in CBOR extra
6 years ago
Sami Vaarala
bac2f49dfd
Merge pull request #2094 from svaarala/add-cbor-extras-testcase
Add CBOR testcase from extras
6 years ago
Sami Vaarala
12b2d48527
Add CBOR testcase from extras
Disabled for now.
6 years ago
Sami Vaarala
19ee11f220
Merge pull request #2093 from svaarala/cbor-concat-fix
Fix CBOR extra decoding of strings with a lot of concatenated pieces
6 years ago
Sami Vaarala
8dd207f286
Releases: CBOR concat fix
6 years ago
Sami Vaarala
5c78175b4f
Fix CBOR decoding of large concatenated strings
The code was missing a duk_require_stack() which caused decoding to fail
if a string was pieced together from a lot of parts.
6 years ago
Sami Vaarala
57d9389525
Merge pull request #2092 from svaarala/gc-object-validation
Improve mark-and-sweep assertion coverage for internal struct validity
6 years ago
Sami Vaarala
d6bec586cd
Releases: mark-and-sweep assertion coverage
6 years ago
Sami Vaarala
31656dda3f
Merge pull request #2090 from TheBrokenRail/patch-1
Add c_eventloop.h to dist
6 years ago
Sami Vaarala
3c959b3415
Configure/dist changes for new files
6 years ago
Sami Vaarala
e77e3ce3c3
Extend internal struct validity assertions in GC
* Rework duk_heaphdr and subclass assertions into functions to
reduce debug build size.
* Add explicit object validity assert passes to mark-and-sweep.
This allows detection of invalid internal structures especially
when used with GC torture.
* Rename assertion macros for consistency, e.g. from
DUK_ASSERT_HSTRING_VALID to DUK_HSTRING_ASSERT_VALID.
6 years ago
TheBrokenRail
0c18461e5d
Fix Dist Build
6 years ago
Sami Vaarala
2a7da90eab
Merge pull request #2089 from svaarala/internal-bare-arrays
Use bare arrays/objects in more places internally
6 years ago
Sami Vaarala
3d1c2ece49
Releases: bare objects/arrays
6 years ago