Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fcb0e84

Browse files
committedDec 3, 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 3737a28 commit fcb0e84

File tree

112 files changed

+1539
-401
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

+1539
-401
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
@@ -34,4 +34,27 @@
3434
#define BUILTIN_UNDERSCORED_ID aggregate_error_prototype
3535
#include "ecma-builtin-internal-routines-template.inc.h"
3636

37+
/**
38+
* Dispatcher of the built-in's routines
39+
*
40+
* @return ecma value
41+
* Returned value must be freed with ecma_free_value.
42+
*/
43+
ecma_value_t
44+
ecma_builtin_aggregate_error_prototype_dispatch_routine (uint8_t builtin_routine_id, /**< built-in wide
45+
* routine identifier */
46+
ecma_value_t this_arg, /**< 'this' argument value */
47+
const ecma_value_t arguments_list_p[], /**< list of arguments
48+
* passed
49+
* to routine */
50+
uint32_t arguments_number) /**< length of arguments' list */
51+
{
52+
JERRY_UNUSED (this_arg);
53+
JERRY_UNUSED (arguments_number);
54+
JERRY_UNUSED (arguments_list_p);
55+
JERRY_UNUSED (builtin_routine_id);
56+
57+
JERRY_UNREACHABLE ();
58+
} /* ecma_builtin_aggregate_error_prototype_dispatch_routine */
59+
3760
#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
@@ -104,6 +104,27 @@ ecma_builtin_aggregate_error_dispatch_construct (const ecma_value_t *arguments_l
104104
return result;
105105
} /* ecma_builtin_aggregate_error_dispatch_construct */
106106

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

0 commit comments

Comments
 (0)
Please sign in to comment.