45 Commits (f7c837fd83fcf9bafeda9ce413f067a8f52a073e)

Author SHA1 Message Date
Sami Vaarala 1245df1e12 Reduce error call site footprint, internal changes 9 years ago
Sami Vaarala 09676a682a Use outer setjmp wrapper for call handling 9 years ago
Sami Vaarala 3aa7edbb41 Use direct bytecode pointer to improve performance 10 years ago
Sami Vaarala 0de7188910 Add duk_pnew() API call 9 years ago
Sami Vaarala 1ee4040b3e Add DUK_ASSERT_CTX_VALID() to API entrypoints 10 years ago
Sami Vaarala 5e56112176 Second round of lightfunc support improvements 10 years ago
Sami Vaarala fef0870107 First round of lightfunc changes 11 years ago
Sami Vaarala 1fa66cd25a Symbol visibility changes for code and headers 10 years ago
Sami Vaarala 7e83068577 Type fix for magic value cast 10 years ago
Sami Vaarala 45bf253096 Add duk_{get,set}_magic() API calls 10 years ago
Sami Vaarala e6db67b33e Rename duk_get_magic() to duk_get_current_magic() 10 years ago
Sami Vaarala fa1b620e6e Comment cleanups 10 years ago
Sami Vaarala 00890395d0 Fix duk_is_strict_call()/duk_is_constructor_call() 10 years ago
Sami Vaarala c3b0504c53 change api default strictness (strict even when nothing is running) 11 years ago
Sami Vaarala 6a15c0be73 Formatting casts for custom format (%!T etc) 10 years ago
Sami Vaarala 23faa3c4a3 Intermediate commit: string format cleanups 10 years ago
Sami Vaarala 8c9343a615 Use macro wrappers to access shared strings 10 years ago
Sami Vaarala 0e546d5ae9 API call handling minor improvements 11 years ago
Sami Vaarala 936b9cb479 Internal typing work on public API parts 11 years ago
Sami Vaarala 738ad2751e API typing cleanup: use duk_idx_t for counts 11 years ago
Sami Vaarala d808659ca9 Internal API typing rework 11 years ago
Sami Vaarala d7bc8cf3e6 A round of public API typing fixes 11 years ago
Sami Vaarala 8ebfacf654 More public API typing cleanup 11 years ago
Sami Vaarala 6e5400a4a9 Public API typing cleanups 11 years ago
Sami Vaarala 3714ea26ac debug log call wrappers 11 years ago
Sami Vaarala bff70d0db1 fix duk_pcall_prop() testcase and comment on behavior: if stack has too few values, an error is thrown (not caught); this matches behavior of other protected call primitives 11 years ago
Sami Vaarala 5c1a2d657e fix to duk_pcall_prop() arg handling 11 years ago
Sami Vaarala 82442e178d make duk_pcall_prop() safer: errors related to stack shape or property lookup are also now caught properly 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 2b0bf5f285 remove errhandler_index from protected call handling, and fix call sites in Duktape internals 11 years ago
Sami Vaarala 041f911aa3 rename DUK_HOBJECT_SET_PROTOTYPE to DUK_HOBJECT_SET_PROTOTYPE_UPDREF to make it clearer that it updates refcounts too (decs old, incs new) 11 years ago
Sami Vaarala 9ba0d0aa69 prepend a 'duk__' prefix to a bunch of internal functions 11 years ago
Sami Vaarala 5fa0140888 -Wextra fixes 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 60c5be6b23 make magic value signed 11 years ago
Sami Vaarala f888592e43 add a 16-bit 'magic' field to native functions 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 bb91343ff3 fix a bunch of minor issues for c++ compatibility 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 d962433582 augment errors thrown by Ecmascript code (when error object is created) 11 years ago
Sami Vaarala a669f9829b add a DUK_UNREF() macro and change code to use it; use (void) unused_var convention which works with clang too 11 years ago
Sami Vaarala 11c664a4eb mass rename of multiple duk_push_new_xxx() into duk_push_xxx() for API consistency 11 years ago
Sami Vaarala 8c0b179408 rename DUK_HEAP_STRIDX_XXX to DUK_STRIDX_XXX 12 years ago
Sami Vaarala 3585227f5b public and internal stack API code 12 years ago