Don't use messages for errors by default
Use empty string for message property of builtin error objects by default. Add ERROR_MESSAGES build option. JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -28,6 +28,12 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifdef JERRY_ENABLE_ERROR_MESSAGES
|
||||
#define ECMA_ERR_MSG(msg) msg
|
||||
#else /* !JERRY_ENABLE_ERROR_MESSAGES */
|
||||
#define ECMA_ERR_MSG(msg) NULL
|
||||
#endif /* JERRY_ENABLE_ERROR_MESSAGES */
|
||||
|
||||
/**
|
||||
* Native errors.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user