mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
222 B
14 lines
222 B
/*===
|
|
*** test_1 (duk_safe_call)
|
|
==> rc=1, result='throw me'
|
|
===*/
|
|
|
|
int test_1(duk_context *ctx) {
|
|
duk_push_string(ctx, "throw me");
|
|
duk_throw(ctx);
|
|
return 0;
|
|
}
|
|
|
|
void test(duk_context *ctx) {
|
|
TEST_SAFE_CALL(test_1);
|
|
}
|
|
|