Skip to content

Commit 3bb96a1

Browse files
committedSep 21, 2021
Add custom dispatcher to every builtin object for consistency
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
1 parent 053bfa0 commit 3bb96a1

File tree

112 files changed

+1538
-415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1538
-415
lines changed
 

‎jerry-core/ecma/builtin-objects/ecma-builtin-aggregateerror-prototype.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,27 @@
3333
#define BUILTIN_UNDERSCORED_ID aggregate_error_prototype
3434
#include "ecma-builtin-internal-routines-template.inc.h"
3535

36+
/**
37+
* Dispatcher of the built-in's routines
38+
*
39+
* @return ecma value
40+
* Returned value must be freed with ecma_free_value.
41+
*/
42+
ecma_value_t
43+
ecma_builtin_aggregate_error_prototype_dispatch_routine (uint8_t builtin_routine_id, /**< built-in wide
44+
* routine identifier */
45+
ecma_value_t this_arg, /**< 'this' argument value */
46+
const ecma_value_t arguments_list_p[], /**< list of arguments
47+
* passed
48+
* to routine */
49+
uint32_t arguments_number) /**< length of arguments' list */
50+
{
51+
JERRY_UNUSED (this_arg);
52+
JERRY_UNUSED (arguments_number);
53+
JERRY_UNUSED (arguments_list_p);
54+
JERRY_UNUSED (builtin_routine_id);
55+
56+
JERRY_UNREACHABLE ();
57+
} /* ecma_builtin_aggregate_error_prototype_dispatch_routine */
58+
3659
#endif /* JERRY_ESNEXT */

‎jerry-core/ecma/builtin-objects/ecma-builtin-aggregateerror.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,27 @@ ecma_builtin_aggregate_error_dispatch_construct (const ecma_value_t *arguments_l
103103
return result;
104104
} /* ecma_builtin_aggregate_error_dispatch_construct */
105105

106+
/**
107+
* Dispatcher of the built-in's routines
108+
*
109+
* @return ecma value
110+
* Returned value must be freed with ecma_free_value.
111+
*/
112+
ecma_value_t
113+
ecma_builtin_aggregate_error_dispatch_routine (uint8_t builtin_routine_id, /**< built-in wide routine identifier */
114+
ecma_value_t this_arg, /**< 'this' argument value */
115+
const ecma_value_t arguments_list_p[], /**< list of arguments
116+
* passed to routine */
117+
uint32_t arguments_number) /**< length of arguments' list */
118+
{
119+
JERRY_UNUSED (this_arg);
120+
JERRY_UNUSED (arguments_number);
121+
JERRY_UNUSED (arguments_list_p);
122+
JERRY_UNUSED (builtin_routine_id);
123+
124+
JERRY_UNREACHABLE ();
125+
} /* ecma_builtin_aggregate_error_dispatch_routine */
126+
106127
/**
107128
* @}
108129
* @}

0 commit comments

Comments
 (0)