Added 'instanceof' binary operation to the API (#2751)
Added 'JERRY_BIN_OP_INSTANCEOF' to 'jerry_binary_operation_t' and 'jerry_binary_operation'. Added unit tests for this new operation and updated the documentations. JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -313,12 +313,13 @@ typedef struct jerry_context_t jerry_context_t;
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
JERRY_BIN_OP_EQUAL = 0u, /**< equal comparison (==) */
|
||||
JERRY_BIN_OP_STRICT_EQUAL, /**< strict equal comparison (===) */
|
||||
JERRY_BIN_OP_LESS, /**< less relation (<) */
|
||||
JERRY_BIN_OP_LESS_EQUAL, /**< less or equal relation (<=) */
|
||||
JERRY_BIN_OP_GREATER, /**< greater relation (>) */
|
||||
JERRY_BIN_OP_GREATER_EQUAL /**< greater or equal relation (>=)*/
|
||||
JERRY_BIN_OP_EQUAL = 0u, /**< equal comparison (==) */
|
||||
JERRY_BIN_OP_STRICT_EQUAL, /**< strict equal comparison (===) */
|
||||
JERRY_BIN_OP_LESS, /**< less relation (<) */
|
||||
JERRY_BIN_OP_LESS_EQUAL, /**< less or equal relation (<=) */
|
||||
JERRY_BIN_OP_GREATER, /**< greater relation (>) */
|
||||
JERRY_BIN_OP_GREATER_EQUAL, /**< greater or equal relation (>=)*/
|
||||
JERRY_BIN_OP_INSTANCEOF, /**< instanceof operation */
|
||||
} jerry_binary_operation_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user