Rework external function handlers (#4599)
Instead of a fixed number of arguments, a call info structure is passed to the handlers, which can be extended in the future without breaknig the API. This structure holds new.target value, so its getter function is removed. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -28,13 +28,11 @@ typedef struct
|
||||
} test_entry_t;
|
||||
|
||||
static jerry_value_t
|
||||
my_constructor (const jerry_value_t func_val, /**< function */
|
||||
const jerry_value_t this_val, /**< this */
|
||||
my_constructor (const jerry_call_info_t *call_info_p, /**< call information */
|
||||
const jerry_value_t argv[], /**< arguments */
|
||||
const jerry_length_t argc) /**< number of arguments */
|
||||
{
|
||||
(void) func_val;
|
||||
(void) this_val;
|
||||
(void) call_info_p;
|
||||
(void) argv;
|
||||
(void) argc;
|
||||
return jerry_create_undefined ();
|
||||
|
||||
Reference in New Issue
Block a user