Sami Vaarala
91da7fc670
Add duk_{get,set}_finalizer() reference to guide
10 years ago
Sami Vaarala
7a58378ee7
API testcase for duk_{get,set}_finalizer
10 years ago
Sami Vaarala
f309bbaffd
Add duk_{get,set}_finalizer C API call
10 years ago
Sami Vaarala
8584e09ccb
Ditz issue update
10 years ago
Sami Vaarala
bbf8b4a82f
Merge branch 'api-get-set-prototype'
Add API calls duk_get_prototype() and duk_set_prototype() to allow C code to
control object prototypes directly. The C API does not prevent prototype
loops from being formed, so it is now possible to create them. This merge
also adds a few fixes to tolerating prototype loops in critical internal
parts like garbage collection and error throwing.
10 years ago
Sami Vaarala
3204b3e1e5
FIXME cleanups and downgrades
10 years ago
Sami Vaarala
4b5ed2c995
FIXME downgrade
10 years ago
Sami Vaarala
63ae3e3f97
Release note: set/get prototype
10 years ago
Sami Vaarala
3855d77c35
Extend get/set prototype API testcase
Now covers undefined/object for set call, naked objects etc.
Does not cover invalid arguments to duk_set_prototype().
10 years ago
Sami Vaarala
3d1d200bac
Improve API doc for duk_push_object re: prototypes
10 years ago
Sami Vaarala
9dbaf87f52
API documentation for duk_{get_set}_prototype()
10 years ago
Sami Vaarala
0722872b39
Improve prototype loop testcase
Should now have full coverage over internal prototype walk sites.
10 years ago
Sami Vaarala
5043b54a27
Coerce with duk_safe_to_string() in runtests
Previously used duk_to_string() which may cause an uncaught error when a
thrown value cannot be string coerced (e.g. an error which participates
in a prototype loop causes an error when toString() is attempted).
10 years ago
Sami Vaarala
2d33806393
Prototype loop fix for error augmentation
Add an ignore_loop argument to duk_hobject_prototype_chain_contains() to
support this behavior. It depends on the context whether a prototype loop
should cause an error to be thrown or not.
10 years ago
Sami Vaarala
91df98b49b
Draft API testcase for duk_{get,set}_prototype
10 years ago
Sami Vaarala
f00ed4ca92
Add an API testcase for prototype loop and GC
10 years ago
Sami Vaarala
a260738c83
Add 'ignore prototype loop' flag to desc lookup
This is not ideal for the generated asm code but optimization can be done
separately.
10 years ago
Sami Vaarala
60d91dbc2d
FIXME notes and other trivia
10 years ago
Sami Vaarala
e4361ae775
Debug log uncaught error
10 years ago
Sami Vaarala
a494c9857a
Add flushes to runtests.js C stdout
10 years ago
Sami Vaarala
3aec0f0bd8
Add duk_{get,set}_prototype() to API
Right now duk_set_prototype() allows prototype loops which is OK as such but
prototype loops haven't previously been allowed. There's at least one issue
in mark-and-sweep which causes an uncaught error when a prototype loop is
present.
10 years ago
Sami Vaarala
1f05400580
Ditz issue update
10 years ago
Sami Vaarala
d3446c726b
One more doc tweak for fastints
10 years ago
Sami Vaarala
643ce4c341
Tagged fastint trivia
10 years ago
Sami Vaarala
483a82ce9b
Discussion on double-to-fastint conversion check
10 years ago
Sami Vaarala
c02fc852e5
Ditz issue update
10 years ago
Sami Vaarala
2127c44433
Merge branch 'api-get-set-magic'
10 years ago
Sami Vaarala
504eca2706
Release note: magic values
10 years ago
Sami Vaarala
44c37a75ae
Guide documentation for magic values
10 years ago
Sami Vaarala
54e3c71227
Add a guide related magic test to API testcases
10 years ago
Sami Vaarala
aedfa691a8
Add error cases to magic API testcase
10 years ago
Sami Vaarala
6ede53fc0e
API docs for magic set/get
10 years ago
Sami Vaarala
7e83068577
Type fix for magic value cast
10 years ago
Sami Vaarala
8c9ef37e33
API testcase for duk_{get,set}_magic()
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()
The previous name conflicts with the upcoming duk_get_magic() and
duk_set_magic() calls which edit the properties of an arbitrary
function object.
10 years ago
Sami Vaarala
d964998d75
Update duk_get_current_magic() API doc
10 years ago
Sami Vaarala
49e33170e0
Rename duk_get_magic API file
10 years ago
Sami Vaarala
7de559fc12
Ditz issue update
10 years ago
Sami Vaarala
4a818c6924
Ditz issue update
10 years ago
Sami Vaarala
1541c88073
Merge branch 'api-default-strictness'
10 years ago
Sami Vaarala
fa1b620e6e
Comment cleanups
10 years ago
Sami Vaarala
34eeee6827
Release note update
10 years ago
Sami Vaarala
8da067aa95
Guide and API doc updates for API strictness
10 years ago
Sami Vaarala
8d20275dda
Remove outdated FIXME from testcase
10 years ago
Sami Vaarala
00890395d0
Fix duk_is_strict_call()/duk_is_constructor_call()
Strictness change was in incorrect function.
10 years ago
Sami Vaarala
bf38ee992b
Fix API testcases for new strictness policy
10 years ago
Sami Vaarala
df4faff604
fixme note
11 years ago
Sami Vaarala
9f60f0c0d6
fix api strictness test case
11 years ago
Sami Vaarala
c3b0504c53
change api default strictness (strict even when nothing is running)
11 years ago