671 Commits (c55b0f2c1c11c77b11e34be3a5e1b8e361b27e7a)

Author SHA1 Message Date
Sami Vaarala 80e66df598 add support for function statements with V8-like semantics (DUK_OPT_NO_FUNC_STMT to disable) 11 years ago
Sami Vaarala 255bac54a6 compile warning trivia 11 years ago
Sami Vaarala 53a6a4a52a -Wextra fix 11 years ago
Sami Vaarala dc919e8193 typing cleanup 11 years ago
Sami Vaarala b2b03c0743 duk_ret and duk_idx rename fixes 11 years ago
Sami Vaarala 5e3acbd0c7 move duk_size_t to duktape.h (needed by API), add '_t' suffixes to duk_int and duk_ret 11 years ago
Sami Vaarala bbd96a315c disabled temporary api wrapper 11 years ago
Sami Vaarala 920745c4d6 combine Duktape jxEnc+jcEnc to enc() and jxDec+jcDec to dec(), this saves run-time Function instances 11 years ago
Sami Vaarala 9bcb7d1889 comment on finalizer handling: there is no way to delete the internal _finalizer property, but this is just a cosmetic issue (you can disable the finalizer by setting it to undefined) 11 years ago
Sami Vaarala e14d1c476c update setFinalizer/getFinalizer compatibility wrapper in initjs 11 years ago
Sami Vaarala aba14fe4f0 replace setFin/getFin with a single function fin() to reduce footprint 11 years ago
Sami Vaarala ba8972d88f fixme note 11 years ago
Sami Vaarala ed0685ce3f improve Duktape.info() a bit, smaller size, better output format 11 years ago
Sami Vaarala 85fec5d37b add missing DUK_UNREF() to disabled functions, removes compile warning 11 years ago
Sami Vaarala 0d214c1dc0 clean up JSONX/JSONC conditional compilation, more refined #ifdefs for different combinations 11 years ago
Sami Vaarala d237df0766 rename initjs, combined file for now 11 years ago
Sami Vaarala 5944e15f62 inijs legacy funcs: addr, refc 11 years ago
Sami Vaarala f2b42dac6a replace Duktape addr() and refc() with info(), which provides alloc sizes, property part sizes, etc in a version specific format 11 years ago
Sami Vaarala ed4af7f169 make pc2line recording conditional to compilation option DUK_OPT_NO_PC2LINE (DUK_USE_PC2LINE) 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 9456307fbe add missing pops to builtins init (when initjs was used) 11 years ago
Sami Vaarala fe7382b8d5 fixme note 11 years ago
Sami Vaarala eb9c3f01cc fixes to Array built-ins (recently refactor): 'length' must always be writable, non-enumerable, and non-configurable 11 years ago
Sami Vaarala 4f12fda51b fix Array.prototype.slice(); undefined elements don't affect result length 11 years ago
Sami Vaarala 5a6631713d fix Array.prototype.slice() to use duk_def_prop_xxx instead of duk_put_prop_xxx 11 years ago
Sami Vaarala 51c8037305 add legacy setFinalizer/getFinalizer values for now 11 years ago
Sami Vaarala 4138ac87b1 rename setFinalizer/getFinalizer -> setFin/getFin 11 years ago
Sami Vaarala ebb16cd2c1 rename jsonxEnc -> jxEnc etc 11 years ago
Sami Vaarala f181ce100a fix Array.prototype.splice() result 'length' property write 11 years ago
Sami Vaarala 6260d9592f add missing 'length' write to iter helper (broke e.g. filter) 11 years ago
Sami Vaarala 82ed7a968d array built-in comment for 'def' vs. 'put' 11 years ago
Sami Vaarala b7fa462983 fix some array built-in result writes from 'put' to 'def' 11 years ago
Sami Vaarala 75cf56e9a5 remove FIXME as incorrect: the result of array transformations is an array even if 'this' is not one, so 'length' must always be set 11 years ago
Sami Vaarala 1d4c904074 FIXME note: Array built-in methods must not set 'length' for non-arrays 11 years ago
Sami Vaarala 5ec645cd97 Array built-in fixes: use duk_def_prop() instead of duk_put_prop() in several places (perhaps not all yet) to avoid obscure corner cases with Array.prototype containing conflicting properties 11 years ago
Sami Vaarala 2ed06b0ff4 duk_def_prop comment: no special behaviors like [[DefineOwnProperty]] 11 years ago
Sami Vaarala 48864f6d8f first draft of 'initjs' code which would allow compatibility cruft to be implemented in JS and executed in init 11 years ago
Sami Vaarala 5a70556a34 some missing constants 11 years ago
Sami Vaarala 2f93c246cf fix duk_def_prop_index() (key and value were swapped), fix tracedata length 11 years ago
Sami Vaarala ee4d373910 add 'caller' and 'arguments' properties to bound functions, as required by E5.1 Section 15.3.4.5, steps 20-21 11 years ago
Sami Vaarala 7a9a9a635d use duk_def_prop() and its variants to augment error; this prevents obscure DoubleErrors where Object.prototype or Array.prototype contains conflicting values 11 years ago
Sami Vaarala 95ec72b63e add duk_def_prop_index() internal method 11 years ago
Sami Vaarala 39a781cb63 fix regexp parsing bug for identity escape; the if-clause also allowed end-of-buffer which caused '\' to parse as a valid regexp 11 years ago
Sami Vaarala 0d2093f7e8 increase regexp executor recursion limit for deep stack configuration 11 years ago
Sami Vaarala b70d25f2e4 make Function.prototype.toString.length zero, although specification does not seem to mandate a value, test262 requires that it be zero 11 years ago
Sami Vaarala f39ecd5595 fix eval strictness handling: when doing an indirect eval, the caller's strictness does not affect eval strictness 11 years ago
Sami Vaarala 9251caebb8 fix defineProperty() pending write protect handling when writing array 'length' property to a smaller value 11 years ago
Sami Vaarala cb47a664ae getOwnPropertyDescriptor() must provide 'set' and 'get' for an accessor; if they have not been set, the property must be present with the value 'undefined' 11 years ago
Sami Vaarala 8b23a12507 shorten instanceof error msg 11 years ago