Sami Vaarala
5fe5313843
Faster case insensitive regexp canonicalization
7 years ago
Sami Vaarala
39ecb8b7eb
Source fixes for #ifdef and #ifndef convention
8 years ago
Sami Vaarala
ad94449d8e
Add ES6 0oNNN, 0bNNN literals, 078 decimal literal
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
61d5b3d6d9
JSON stringify improvements
* Use a single step value encoding approach instead of a two-step one
* Rework slow path value encoding to rewind: by simply rewinding the
ufwriter the awkward two-step approach can be avoided.
* Also rework automatic "naked" key escape code to be a bit simpler.
* Fix automatic unboxing of strings, numbers, etc in JSON.stringify()
fast path; it needs to invoke .toString() / .valueOf() explicitly
if they have been replaced in the object itself or in the prototype
chain.
9 years ago
Sami Vaarala
a38b8cd01d
Faster regexp canonicalization using a lookup
9 years ago
Sami Vaarala
0f86d575d2
Rework unicode support for bufwriter
9 years ago
Sami Vaarala
fd263bcf84
Rework global object to use bufwriter
9 years ago
Sami Vaarala
4586688185
Add some missing "const" specifiers for strings
10 years ago
Sami Vaarala
e239f76ea8
Better C++ static decl fix
When doing a single file build, drop DUK_INTERNAL_DECL declarations which
would otherwise be mapped to "static". This avoids the problem with C++
where a static data symbol is both forward declared and defined.
With this change static definitions must appear before their first use in
the single file build. This requires a change in combine_src.py which is
done in a separate commit.
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
6d5769f20b
Unicode typing minor fix
11 years ago
Sami Vaarala
b11bcc339a
add ascii char integer constants
11 years ago
Sami Vaarala
8eac7856a9
add duk_unicode_is_letter
11 years ago
Sami Vaarala
e6e2e682be
shorten unicode table/shell variable names a bit, add IdentifierStart-minus-Letter to unicode tables in anticipation of duk_unicode_is_letter
11 years ago
Sami Vaarala
49597a03b9
integer constant sign fixes, other trivia
11 years ago
Sami Vaarala
3731c7b068
make duk_codepoint_t a signed type and use it everywhere except utf8/cesu8 encode/decode which uses the duk_ucodepoint_t unsigned type
11 years ago
Sami Vaarala
8bfb63cb68
unicode fix for EOF (-1); caused unwanted uni_range_match calls
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
12fb90f00d
C type cleanups
11 years ago
Sami Vaarala
75ac0c8e1a
integer constant fixes
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
3db2f99b22
remove #include directives from internal header files; duk_internal.h is expected to include them in correct order anyway
11 years ago
Sami Vaarala
4862b7aa49
fix include guard names, don't use leading underscores as they are reserved
12 years ago
Sami Vaarala
9e8ca671d3
change duk_unicode_xutf8_get_u32() to be non-checked; fix minor nits in global object encode/decode functions (now passes tests)
12 years ago
Sami Vaarala
6cf219a631
unicode replacement char define moved to duk_unicode.h
12 years ago
Sami Vaarala
20ce4e6095
move a lonely function to unicode support file
12 years ago
Sami Vaarala
98f1da91c1
unicode support code
12 years ago