Add custom dispatcher to builtin-json. (#4679)

JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
This commit is contained in:
Virag Orkenyi
2021-07-20 11:32:20 +02:00
committed by GitHub
parent b25b640ff5
commit bbf1c0105b
2 changed files with 54 additions and 10 deletions
@@ -30,8 +30,8 @@ STRING_VALUE (LIT_GLOBAL_SYMBOL_TO_STRING_TAG,
/* Routine properties:
* (property name, C routine name, arguments number or NON_FIXED, value of the routine's length property) */
ROUTINE (LIT_MAGIC_STRING_PARSE, ecma_builtin_json_parse, 2, 2)
ROUTINE (LIT_MAGIC_STRING_STRINGIFY, ecma_builtin_json_stringify, 3, 3)
ROUTINE (LIT_MAGIC_STRING_PARSE, ECMA_BUILTIN_JSON_PARSE, 2, 2)
ROUTINE (LIT_MAGIC_STRING_STRINGIFY, ECMA_BUILTIN_JSON_STRINGIFY, 3, 3)
#endif /* JERRY_BUILTIN_JSON */