Adding Jerry api for calling function with specific this binding.

This commit is contained in:
Ilyong Cho
2015-03-31 21:01:12 +09:00
parent ef2265ee41
commit 3c2009d331
3 changed files with 120 additions and 7 deletions
+4
View File
@@ -102,6 +102,9 @@ jerry_api_string_t* jerry_api_create_string (const char *v);
extern EXTERN_C
jerry_api_object_t* jerry_api_create_object (void);
extern EXTERN_C
bool jerry_api_is_function(const jerry_api_object_t *object_p);
extern EXTERN_C
bool jerry_api_add_object_field (jerry_api_object_t *object_p,
const char *field_name_p,
@@ -121,6 +124,7 @@ bool jerry_api_set_object_field_value (jerry_api_object_t *object_p,
extern EXTERN_C
bool jerry_api_call_function (jerry_api_object_t *function_object_p,
jerry_api_object_t *this_arg_p,
jerry_api_value_t *retval_p,
const jerry_api_value_t args_p [],
uint16_t args_count);