diff options
author | Csaba Repasi <repasics@inf.u-szeged.hu> | 2021-11-25 14:06:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 14:06:40 +0100 |
commit | 271d9b2463704fb1ebfa47fd73ecffe7c83d76e0 (patch) | |
tree | 7de45aa976ded04f95f0493a9cce560a2ec695dc /jerry-core/ecma/base/ecma-globals.h | |
parent | fc4168f2b4a1b686484cc858705077fc1f9da5db (diff) |
Outsource magic error messages (#4821)
Modify tools/gen-magic-strings.py to generate error messages.
JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi repasics@inf.u-szeged.hu
Diffstat (limited to 'jerry-core/ecma/base/ecma-globals.h')
-rw-r--r-- | jerry-core/ecma/base/ecma-globals.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jerry-core/ecma/base/ecma-globals.h b/jerry-core/ecma/base/ecma-globals.h index b7a38de5..db459857 100644 --- a/jerry-core/ecma/base/ecma-globals.h +++ b/jerry-core/ecma/base/ecma-globals.h @@ -2272,14 +2272,14 @@ typedef struct * Check the current stack usage. If the limit is reached a RangeError is raised. * The macro argument specifies the return value which is usally ECMA_VALUE_ERROR or NULL. */ -#define ECMA_CHECK_STACK_USAGE_RETURN(RETURN_VALUE) \ - do \ - { \ - if (ecma_get_current_stack_usage () > CONFIG_MEM_STACK_LIMIT) \ - { \ - ecma_raise_range_error (ECMA_ERR_MSG ("Maximum call stack size exceeded")); \ - return RETURN_VALUE; \ - } \ +#define ECMA_CHECK_STACK_USAGE_RETURN(RETURN_VALUE) \ + do \ + { \ + if (ecma_get_current_stack_usage () > CONFIG_MEM_STACK_LIMIT) \ + { \ + ecma_raise_maximum_callstack_error (); \ + return RETURN_VALUE; \ + } \ } while (0) /** |