Add arithmetic operations support for the API (#3249)

This patch extends the jerry_binary_operation_t list with arithmetic operations.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-10-28 15:46:35 +01:00
committed by GitHub
parent 448c239f08
commit 87f60da14f
7 changed files with 327 additions and 3 deletions
+5
View File
@@ -327,6 +327,11 @@ typedef enum
JERRY_BIN_OP_GREATER, /**< greater relation (>) */
JERRY_BIN_OP_GREATER_EQUAL, /**< greater or equal relation (>=)*/
JERRY_BIN_OP_INSTANCEOF, /**< instanceof operation */
JERRY_BIN_OP_ADD, /**< addition operator (+) */
JERRY_BIN_OP_SUB, /**< subtraction operator (-) */
JERRY_BIN_OP_MUL, /**< multiplication operator (*) */
JERRY_BIN_OP_DIV, /**< division operator (/) */
JERRY_BIN_OP_REM, /**< remainder operator (%) */
} jerry_binary_operation_t;
/**