Sami Vaarala
|
bd2a2e4058
|
use duk_peval() and duk_safe_to_string() in dukweb
|
11 years ago |
Sami Vaarala
|
4b3fbf2ee8
|
ditz issue update
|
11 years ago |
Sami Vaarala
|
1c0589b017
|
Merge branch 'safe-eval-compile'
|
11 years ago |
Sami Vaarala
|
422a8723c7
|
fixme removal
|
11 years ago |
Sami Vaarala
|
1f12550ad5
|
api doc cleanups
|
11 years ago |
Sami Vaarala
|
a966085d70
|
api docs for duk_peval() and friends
|
11 years ago |
Sami Vaarala
|
ff88381a4a
|
api docs for duk_pcompile() and its variants
|
11 years ago |
Sami Vaarala
|
4d0da6cb1b
|
duk_compile() api doc comment fix
|
11 years ago |
Sami Vaarala
|
a06fa7b2d6
|
duk_pcall_prop fixme remove
|
11 years ago |
Sami Vaarala
|
e0293de05a
|
release note update
|
11 years ago |
Sami Vaarala
|
06ac6d6cc0
|
protected call test case trivia: use duk_safe_to_string()
|
11 years ago |
Sami Vaarala
|
5ed6b32dff
|
improve duk_pcall_prop() api testcase, add more error cases
|
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
|
4f2fdf84e7
|
fix some old call sites with explicit errhandler index
|
11 years ago |
Sami Vaarala
|
f8072e14e5
|
remove old fixme from pcall test cases
|
11 years ago |
Sami Vaarala
|
9f5599564a
|
api test cases for protected compile variants (and duk_compile_file() which was missing in tests)
|
11 years ago |
Sami Vaarala
|
5d28e2889d
|
release note update
|
11 years ago |
Sami Vaarala
|
b1fa186e15
|
protected eval test cases
|
11 years ago |
Sami Vaarala
|
62d514c178
|
extend duk_eval_raw() and duk_compile_raw() with a safe flag; c++ header fix for duk_log()
|
11 years ago |
Sami Vaarala
|
cf4cadb9c9
|
whitespace fix
|
11 years ago |
Sami Vaarala
|
878e30e7c4
|
Merge branch 'errhandler-rework'
|
11 years ago |
Sami Vaarala
|
5661b5e916
|
cleanup
|
11 years ago |
Sami Vaarala
|
ea6d0ceb3d
|
release note cleanup
|
11 years ago |
Sami Vaarala
|
25d4788871
|
guide documentation on error handlers
|
11 years ago |
Sami Vaarala
|
46273e5d08
|
remove guide limitation note on error handlers
|
11 years ago |
Sami Vaarala
|
522b7c32ea
|
document corner case of errcreate() being called twice
|
11 years ago |
Sami Vaarala
|
66d141db04
|
internal error doc update
|
11 years ago |
Sami Vaarala
|
695e697b51
|
errhandler test case improvements
|
11 years ago |
Sami Vaarala
|
22f9a8bda3
|
only errcreate augment error instances
|
11 years ago |
Sami Vaarala
|
41b95a9bc7
|
add errcreate tests
|
11 years ago |
Sami Vaarala
|
e6c8a2bd15
|
errcreate/errthrow test case
|
11 years ago |
Sami Vaarala
|
7d637a9af1
|
unref trivia
|
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
|
b8eed34aea
|
dukweb fixes for lack of errhandler index
|
11 years ago |
Sami Vaarala
|
f2ca1e8450
|
update protected/safe api calls to omit errhandler_index
|
11 years ago |
Sami Vaarala
|
af5890af3d
|
add a DUK_USE_ERRHANDLER define
|
11 years ago |
Sami Vaarala
|
4817da82a8
|
error test case fix, line numbers changed
|
11 years ago |
Sami Vaarala
|
a34ae108c3
|
trivial fixme cleanup
|
11 years ago |
Sami Vaarala
|
63b27a2b6a
|
errhandler test for C code
|
11 years ago |
Sami Vaarala
|
59da83d760
|
error handler tests, covers errors thrown by Duktape, errors thrown from Ecmascript code, and errors propagated with yield/resume with isError=true
|
11 years ago |
Sami Vaarala
|
25f7fcbc32
|
fix old debug reference to thr->errhandler
|
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
|
6f1ae274a7
|
duk_bi_duk.c -> duk_bi_duktape.c
|
11 years ago |
Sami Vaarala
|
cba13e5544
|
change error handler to be stored in the Duktape.errhnd property instead of an internal property: not as good for sandboxing, but requires no additional APIs, follows from one thread to another automatically, and reference to Duktape object can be removed from a sandbox anyway
|
11 years ago |
Sami Vaarala
|
7264a1b63c
|
rename bi_duk -> bi_duktape, similar renames to defines
|
11 years ago |
Sami Vaarala
|
ac6e306886
|
fix some api testcases to use TEST_SAFE_CALL to reduce duplication
|
11 years ago |
Sami Vaarala
|
10cb9abb76
|
fix some api testcases to use TEST_SAFE_CALL to reduce duplication
|
11 years ago |
Sami Vaarala
|
4c2c499227
|
release note update
|
11 years ago |
Sami Vaarala
|
b91f6e7124
|
fix protected/safe call sites in code examples to omit errhandler_index
|
11 years ago |
Sami Vaarala
|
9b6d119c85
|
fix runtests to omit errhandler_index
|
11 years ago |