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.
 
 
 
 
 
 

16 lines
264 B

/*===
*** test_1 (duk_safe_call)
==> rc=1, result='throw me'
===*/
static duk_ret_t test_1(duk_context *ctx, void *udata) {
(void) udata;
duk_push_string(ctx, "throw me");
duk_throw(ctx);
return 0;
}
void test(duk_context *ctx) {
TEST_SAFE_CALL(test_1);
}