@@ -252,7 +252,7 @@ For example usage see [jerryx_set_properties](#jerryx_set_properties).
252
252
253
253
# Common external function handlers
254
254
255
- ## jerryx_handler_assert_fatal
255
+ ## jerryx_handler_assert
256
256
257
257
**Summary**
258
258
@@ -265,12 +265,13 @@ a backtrace is also printed out.
265
265
266
266
```c
267
267
jerry_value_t
268
- jerryx_handler_assert_fatal (const jerry_value_t func_obj_val, const jerry_value_t this_p,
269
- const jerry_value_t args_p[], const jerry_length_t args_cnt);
268
+ jerryx_handler_assert (const jerry_call_info_t *call_info_p,
269
+ const jerry_value_t args_p[],
270
+ const jerry_length_t args_cnt);
270
271
```
271
272
272
- - ` func_obj_val ` - the function object that was called (unused).
273
- - ` this_p ` - the ` this ` value of the call (unused).
273
+ - ` call_info_p ` - pointer to a [ jerry_call_info_t ] ( #jerry_call_info_t )
274
+ structure which holds call related information (unused).
274
275
- ` args_p ` - the array of function arguments.
275
276
- ` args_cnt ` - the number of function arguments.
276
277
- return value - ` jerry_value_t ` representing boolean true, if only one argument
@@ -282,43 +283,6 @@ jerryx_handler_assert_fatal (const jerry_value_t func_obj_val, const jerry_value
282
283
- [ jerryx_register_global] ( #jerryx_register_global )
283
284
284
285
285
- ## jerryx_handler_assert_throw
286
-
287
- ** Summary**
288
-
289
- Soft assert for scripts. The routine throws an error on assertion failure.
290
-
291
- ** Prototype**
292
-
293
- ``` c
294
- jerry_value_t
295
- jerryx_handler_assert_throw (const jerry_value_t func_obj_val, const jerry_value_t this_p,
296
- const jerry_value_t args_p[ ] , const jerry_length_t args_cnt);
297
- ```
298
-
299
- - `func_obj_val` - the function object that was called (unused).
300
- - `this_p` - the `this` value of the call (unused).
301
- - `args_p` - the array of function arguments.
302
- - `args_cnt` - the number of function arguments.
303
- - return value - `jerry_value_t` representing boolean true, if only one argument
304
- was passed and that argument was a boolean true, an error otherwise.
305
-
306
- **See also**
307
-
308
- - [jerryx_register_global](#jerryx_register_global)
309
-
310
-
311
- ## jerryx_handler_assert
312
-
313
- **Summary**
314
-
315
- An alias to `jerryx_handler_assert_fatal`.
316
-
317
- **See also**
318
-
319
- - [jerryx_handler_assert_fatal](#jerryx_handler_assert_fatal)
320
-
321
-
322
286
## jerryx_handler_gc
323
287
324
288
** Summary**
@@ -331,12 +295,13 @@ gc is performed, which is also the default if no parameters passed.
331
295
332
296
``` c
333
297
jerry_value_t
334
- jerryx_handler_gc (const jerry_value_t func_obj_val, const jerry_value_t this_p,
335
- const jerry_value_t args_p[], const jerry_length_t args_cnt);
298
+ jerryx_handler_gc (const jerry_call_info_t * call_info_p,
299
+ const jerry_value_t args_p[ ] ,
300
+ const jerry_length_t args_cnt);
336
301
```
337
302
338
- - ` func_obj_val ` - the function object that was called (unused).
339
- - ` this_p ` - the ` this ` value of the call (unused).
303
+ - `call_info_p ` - pointer to a [jerry_call_info_t](#jerry_call_info_t)
304
+ structure which holds call related information (unused).
340
305
- `args_p` - the array of function arguments (unused).
341
306
- `args_cnt` - the number of function arguments (unused).
342
307
- return value - `jerry_value_t` representing `undefined`.
@@ -365,12 +330,13 @@ ensure that their port implementation also provides
365
330
366
331
```c
367
332
jerry_value_t
368
- jerryx_handler_print (const jerry_value_t func_obj_val, const jerry_value_t this_p,
369
- const jerry_value_t args_p[ ] , const jerry_length_t args_cnt);
333
+ jerryx_handler_print (const jerry_call_info_t *call_info_p,
334
+ const jerry_value_t args_p[],
335
+ const jerry_length_t args_cnt);
370
336
```
371
337
372
- - `func_obj_val ` - the function object that was called (unused).
373
- - `this_p` - the `this` value of the call (unused).
338
+ - ` call_info_p ` - pointer to a [ jerry_call_info_t ] ( #jerry_call_info_t )
339
+ structure which holds call related information (unused).
374
340
- ` args_p ` - the array of function arguments.
375
341
- ` args_cnt ` - the number of function arguments.
376
342
- return value - ` jerry_value_t ` representing ` undefined ` if all arguments could
@@ -398,7 +364,7 @@ longer needed.
398
364
``` c
399
365
jerry_value_t
400
366
jerryx_register_global (const char * name_p,
401
- jerry_external_handler_t handler_p);
367
+ jerry_external_handler_t handler_p);
402
368
```
403
369
404
370
- `name_p` - the name of the function to be registered.
0 commit comments