Sami Vaarala
67101ff313
Make ES6 math funcs conditional, log constants
8 years ago
Sami Vaarala
82e695c309
Remove normal double constants from config
They have no known portability issues so they can be defined internally.
Leave NaN and Infinity as defines because they sometimes need replacement.
8 years ago
Sami Vaarala
f45c3fa862
Add testcase for log2(2^N) for full N range
8 years ago
Sami Vaarala
f70e1a35df
Make regexp neg jump offset test a bit faster
8 years ago
Sami Vaarala
146f8ed8a6
Merge pull request #1096 from svaarala/fix-delprop-eidx-finalizer
Fix delprop and Object.defineProperty() bugs triggered by value deletion finalizer side effect
8 years ago
Sami Vaarala
d8b877ed47
Releases: delprop e_idx stability
8 years ago
Sami Vaarala
d450cee630
Process refzeros before throwing an error
8 years ago
Sami Vaarala
8b5320c9a0
Avoid side effects on e_idx in property code
Side effects may include finalizers which operate on the object and may thus
invalidate the 'e_idx' we've looked up. Fix by operating with NORZ macros and
using a single refzero check.
8 years ago
Sami Vaarala
ac75fe83b3
DUK_REFZERO_CHECK() macro slow/fast variant
8 years ago
Sami Vaarala
da57edd4ce
Bug testcase for a few e_idx stability bugs
8 years ago
Sami Vaarala
79bfb295ae
Merge pull request #1093 from fatcerberus/math-cbrt
Implement Math.cbrt(), Math.log{2,10}(), Math.trunc()
8 years ago
Bruce Pascoe
8738672a43
Releases: ES6 Math.cbrt(), log{2,10}(), trunc()
8 years ago
Bruce Pascoe
3053c25000
Add Math.trunc() built-in function
8 years ago
Bruce Pascoe
6b8e332391
Add Math.log{2,10}() built-in functions
8 years ago
Bruce Pascoe
3474ccf54f
Add Math.cbrt() built-in function
8 years ago
Bruce Pascoe
59ce1b2351
Testcase: Math.trunc()
8 years ago
Bruce Pascoe
7e2f598a9c
Testcases: Math.log2(), Math.log10()
8 years ago
Bruce Pascoe
0cef11e31d
Testcase: Math.cbrt()
8 years ago
Sami Vaarala
e01468ddc1
Merge pull request #1090 from svaarala/fix-broken-refcount-assert
Fix a few broken asserts in refcount code
8 years ago
Sami Vaarala
739fa194cc
Merge pull request #1087 from svaarala/add-get-prop-desc
Implement duk_get_prop_desc() API call
8 years ago
Sami Vaarala
7e8000e5fc
Merge pull request #1089 from svaarala/testcase-global-proxy
Add testcase for replacing global object with Proxy
8 years ago
Sami Vaarala
0001b52806
Releases: duk_get_prop_desc()
8 years ago
Sami Vaarala
858f32d781
API doc for duk_get_prop_desc()
8 years ago
Sami Vaarala
168eb06ff7
Test for duk_get_prop_desc()
8 years ago
Sami Vaarala
6c11b8e0bc
Releases: refcount broken asserts
8 years ago
Sami Vaarala
e156fe86b3
Fix a few broken asserts in refcount code
The asserts didn't check for NULL properly. The code itself is OK, and
handles NULL correctly.
8 years ago
Sami Vaarala
ae61e391f5
Testcase for replacing global object with Proxy
8 years ago
Sami Vaarala
f77ea3fa4d
Merge pull request #1086 from svaarala/put-number-list-fastints
Add fastint check for duk_put_number_list() values
8 years ago
Sami Vaarala
37242ab587
Add duk_get_prop_desc() API call
8 years ago
Sami Vaarala
bce2e8ea2e
Releases: duk_put_number_list() fastint check
8 years ago
Sami Vaarala
1d2f996e4c
Test coverage for duk_put_number_list() fastint
8 years ago
Sami Vaarala
435dd6edf9
Fastint check for duk_put_number_list()
Also provide explicit fast / slow (small) variants for fastint downgrade
check: it doesn't make sense to inline the very large check except in the
hot paths of executor and call handling. Elsewhere it's better to save
footprint and thus code cache.
8 years ago
Sami Vaarala
b5b0bf9b5b
Merge pull request #1084 from svaarala/fix-tonumber-octal-support
Add support for ToNumber() octal and binary conversion
8 years ago
Sami Vaarala
5e3fbe74b0
Releases: 0o123 and 0b10001 in ToNumber()
8 years ago
Sami Vaarala
ba9c99752e
Add 0o123 and 0b10001 support to ToNumber()
8 years ago
Sami Vaarala
55800e85ec
Cover 0o123 and 0b10001 in ToNumber() test
Also some other coverage improvements.
8 years ago
Sami Vaarala
03474054b3
Merge pull request #1083 from svaarala/suspend-resume-apitest-fix
Add duk_{suspend,resume}() to symbols API test
8 years ago
Sami Vaarala
7efc0db79a
Merge pull request #1082 from svaarala/linenoise-improvements
Improve Linenoise hints handling
8 years ago
Sami Vaarala
f4db5c978d
Add duk_{suspend,resume}() to symbols API test
8 years ago
Sami Vaarala
9ae31f8af3
Improve Linenoise hints handling
8 years ago
Sami Vaarala
5d02063ab8
Merge pull request #1080 from svaarala/object-__proto__-toobject
Fix Object.prototype.__proto__ coercion
8 years ago
Sami Vaarala
1e71750dec
Releases: Object.prototype.__proto__ fix
8 years ago
Sami Vaarala
7dee4f22ae
Fix Object.prototype.__proto__ ToObject() coercion
8 years ago
Sami Vaarala
ba734ee7b9
Update Object.prototype.__proto__ testcase
8 years ago
Sami Vaarala
fbfa9801af
Merge pull request #1078 from svaarala/add-linenoise-hints
Add linenoise hints to 'duk'
8 years ago
Sami Vaarala
dc09643525
Add linenoise hints to 'duk'
8 years ago
Sami Vaarala
31cdaad5e5
Merge pull request #1077 from svaarala/get-type-lookup
Faster duk_get_type() and duk_get_type_mask()
8 years ago
Sami Vaarala
55ab25172f
Releases: duk_get_{type,type_mask}() optimization
8 years ago
Sami Vaarala
efc0135423
Genbuiltins fix for duk_tval.h define change
8 years ago
Sami Vaarala
7af978ba06
Faster duk_get_type() and duk_get_type_mask()
For unpacked duk_tval, do a straight lookup with no tag type range check.
8 years ago