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:
@@ -273,10 +273,7 @@ restart:
|
||||
}
|
||||
|
||||
const jerry_value_t args[] = { ret_value };
|
||||
jerry_value_t ret_val_print = jerryx_handler_print (jerry_create_undefined (),
|
||||
jerry_create_undefined (),
|
||||
args,
|
||||
1);
|
||||
jerry_value_t ret_val_print = jerryx_handler_print (NULL, args, 1);
|
||||
jerry_release_value (ret_val_print);
|
||||
jerry_release_value (ret_value);
|
||||
ret_value = jerry_run_all_enqueued_jobs ();
|
||||
|
||||
Reference in New Issue
Block a user