Sami Vaarala
8f38a00bf0
Some -Wsign-conversion fixes
* Change duk_bool_to to duk_small_uint_t from duk_small_int_t. This may
cause some sign warnings in calling code.
* Reject attempt to unpack an array-like value whose length is 2G or over;
previously was not checked explicitly, and the length was cast to duk_idx_t
with a sign change and the unpack would then later fail. Now it fails with
a clean RangeError.
* Add wrap check for Node.js Buffer.concat().
* API DUK_TYPE_xxx, DUK_TYPE_MASK_xxx, flag constants etc are now unsigned.
7 years ago
Sami Vaarala
39ecb8b7eb
Source fixes for #ifdef and #ifndef convention
8 years ago
Sami Vaarala
5d70ffc76e
Remove throwing stubs for buffers, Proxy, etc
8 years ago
Sami Vaarala
96d301b3cb
Rename src/ to src-input/ to match dist
With this change the directory naming in the main repo and dist is the same.
8 years ago
Sami Vaarala
08c0457d80
Replace DUK_USE_DEEP_C_STACK with explicit limits
9 years ago
Sami Vaarala
20902e1bba
Rework regexp code for bufwriter
9 years ago
Sami Vaarala
dd7ec615c6
Make regexp deep stacks deeper (GH-157)
10 years ago
Sami Vaarala
ec62b01018
Non-leading tab fixes
10 years ago
Sami Vaarala
4586688185
Add some missing "const" specifiers for strings
10 years ago
Sami Vaarala
1fa66cd25a
Symbol visibility changes for code and headers
10 years ago
Sami Vaarala
f5ee49d713
Fix trailing newline offenders in src
10 years ago
Sami Vaarala
6948fde0b6
add DUK_REOP_WIPERANGE and implement saved array wiping when quantified is rematched, fixing e.g. test-bug-regexp-quantifier-captures.js
11 years ago
Sami Vaarala
a46fc955da
track capture range saved by an atom
11 years ago
Sami Vaarala
0d2093f7e8
increase regexp executor recursion limit for deep stack configuration
11 years ago
Sami Vaarala
408670ce5e
add a token parse limit as a backstop to regexp and ecmascript compilation: this helps break out of very deep inner function cases
11 years ago
Sami Vaarala
9fa1ec592d
clean up #define, #undef, #ifdef etc to have a single space after the directive
11 years ago
Sami Vaarala
22e03d2c6f
add a USE define for deep C stacks used on mainstream platforms by default; add increased recursion limits when in use
11 years ago
Sami Vaarala
884045b1d1
typedef C99 'wrapper' types like duk_uint32_t; bulk replacement of duk_u32 with duk_uint32_t, and other type usage replacements
11 years ago
Sami Vaarala
c3330cc908
clean up duk_features.h / duk_internal.h split; merge very small duk_rdtsc.h and duk_bittypes.h to duk_features.h to make duk_features.h the only place where platform specific stuff is handled
11 years ago
Sami Vaarala
fad076afa6
rename growable buffers 'dynamic' buffers (more common and more accurate); other api related changes and placeholders
11 years ago
Sami Vaarala
6a8d1e3a78
add duk_regexp_match_force_global() which matches a regexp with 'global' semantics despite regexp flags; needed for String.prototype.split()
12 years ago
Sami Vaarala
4862b7aa49
fix include guard names, don't use leading underscores as they are reserved
12 years ago
Sami Vaarala
aff4ef07e4
trivial regexp recursion/steps tracking name changes; fix a regexp compiler recursion limit bug
12 years ago
Sami Vaarala
831ff0c942
add regexp code
12 years ago