7 Commits (a6a58a49c2d45357c148d9aeb03300851ca3c86d)

Author SHA1 Message Date
Sami Vaarala 5ed6bb980b Add initial, minimal ES6 Symbol support 8 years ago
Sami Vaarala 39ecb8b7eb Source fixes for #ifdef and #ifndef convention 8 years ago
Sami Vaarala 4c8f675c47 Allow bound function as Thread initial function 8 years ago
Sami Vaarala 640b9990af Use 'ownKeys' trap for for-in (ES7), enum check 8 years ago
Sami Vaarala ba48645a2f Verbose errors also for return shorthand 8 years ago
Sami Vaarala 0bead8a285 Add prototype dense array fast paths for push/pop 9 years ago
Sami Vaarala 96d301b3cb Rename src/ to src-input/ to match dist 8 years ago
Sami Vaarala a7f1adaf63 Remove Duktape specific error subtypes 9 years ago
Sami Vaarala 3b8b9ac36b Avoid 'index' as variable/argument name 9 years ago
Sami Vaarala 407ce44d55 Remove panic handling, use fatal errors instead 9 years ago
Sami Vaarala 1245df1e12 Reduce error call site footprint, internal changes 9 years ago
Sami Vaarala ba542f9792 Use helper for DUK_ERR_API_ERROR call sites 9 years ago
Sami Vaarala f5653f95db Relocate error throwing helpers to duk_error.h 9 years ago
Sami Vaarala 36d8a4f94c Add NaN normalization asserts to duk_tval macros 9 years ago
Sami Vaarala 45571d22a0 Fix DUK_OPT_xxx refs in code comments 9 years ago
Sami Vaarala 92d33fd550 Implement Node.js Buffer and TypedArray support 10 years ago
Sami Vaarala 0028769cd0 Add vararg variants for error/log API calls 10 years ago
Sami Vaarala e239f76ea8 Better C++ static decl fix 10 years ago
Sami Vaarala 1fa66cd25a Symbol visibility changes for code and headers 10 years ago
Sami Vaarala 3ab572de8a Code policy issue fix trivia 10 years ago
Sami Vaarala a3c376fc8c Indent trivia 10 years ago
Sami Vaarala 9a85cb5974 Internal typing fixes (mostly error code) 11 years ago
Sami Vaarala efb9776f91 A round of internal typing fixes (midcommit) 11 years ago
Sami Vaarala d808659ca9 Internal API typing rework 11 years ago
Sami Vaarala de9151c384 typing rework 11 years ago
Sami Vaarala 2fe5e71b1b replace Duktape.errhnd with Duktape.errthrow; add Duktape.errcreate so that user can also add an error handler for creating errors (which may be useful than errthrow); move errhandler calling to duk_error_augment.c; reorganize DUK_USE_xxx flags around error handlers 11 years ago
Sami Vaarala af5890af3d add a DUK_USE_ERRHANDLER define 11 years ago
Sami Vaarala b852d81e90 add error handler calls to Duktape C API error throws, Ecmascript error throws (bytecode), and yield/resume when error flag is true 11 years ago
Sami Vaarala 99e7897144 remove pretty pointless DUK_ERR_OK and DUK_ERR_FAIL defines, which were also easy to confuse with other DUK_ERR_xxx defines 11 years ago
Sami Vaarala 3557e7e484 old panic handler define name in comment fixed 11 years ago
Sami Vaarala 0ccf8adad4 make default panic handler compilation conditional, describe 'exit method' in default panic handler for clarity 11 years ago
Sami Vaarala b53932fab7 simplify panic handling, use DUK_OPT_PANIC_HANDLER instead of DUK_PANIC_HANDLER, add a message to fatal error handler 11 years ago
Sami Vaarala 10a58c4eb7 add DUK_ASSERT_DISABLE() to allow always true asserts to be disabled in a self-documenting way, type cleanup 11 years ago
Sami Vaarala d497c68819 internal macro renames, XXX -> DUK__XXX 11 years ago
Sami Vaarala c7e02cb12e remove internal DUK_ERR_EXEC_xxx codes, use the public DUK_EXEC_xxx codes instead 11 years ago
Sami Vaarala 7cceb7d3db remove DUK_ERR_EXEC_TERM, replace with error throwing; if another catchpoint exists this is handled nicely, if not and we're running a resumed thread, the thread terminates (which is nice); finally, if there is no catchpoint a fatal error happens which is more or less OK 11 years ago
Sami Vaarala e9ae088ab6 add DUK_UNREACHABLE() to panic macros, just in case 11 years ago
Sami Vaarala ecbfe3a832 make panic message sensitive to DUK_USE_FILE_IO 11 years ago
Sami Vaarala 3443d4c816 exit(-1) after DUK_CAUSE_SEGFAULT to satisfy 'noreturn' behavior (fixes warning) 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 aef64f5baf rework duk_double_union and duk_tval macros; doubles are now normalized using a union which should be strict aliasing compatible 11 years ago
Sami Vaarala 9c093c4eb2 don't blame __FILE__ / __LINE__ for Duktape generated errors (but record them in the traceback) 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 bf9649ab2b remove DUK_NEVER_HERE() and use DUK_UNREACHABLE() instead 11 years ago
Sami Vaarala 99016ce623 add DUK_NORETURN() macro (gcc, clang) and wrap error/fatal declarations with it 11 years ago
Sami Vaarala 91ed73ceff c++ compilation improvements 11 years ago
Sami Vaarala d74e3c42d1 add __FILE__/__LINE__ to API errors, detecting variadic macro support; change traceback to tracedata, also store __FILE__/__LINE__ in tracedata if available; other minor cleanups 11 years ago
Sami Vaarala c75bef57c1 use gmtime_r() only when we believe it is available, otherwise use gmtime(); make __FILE__, __LINE__, and __func__ indirect and disable use of __func__ in VBCC (not available); other trivia 11 years ago
Sami Vaarala 508656c1d3 fix overflow warning on gcc-3.3 for INFINITY 11 years ago
Sami Vaarala c0b87f6923 update duktape.h 11 years ago