Introducing exitval opcode for end of script and assertions in unit tests. The opcode finishes interpretation with status code 0 (success) or 1 (failure).
This commit is contained in:
@@ -93,7 +93,9 @@ typedef enum {
|
||||
ECMA_COMPLETION_TYPE_RETURN, /**< block completed with return */
|
||||
ECMA_COMPLETION_TYPE_BREAK, /**< block completed with break */
|
||||
ECMA_COMPLETION_TYPE_CONTINUE, /**< block completed with continue */
|
||||
ECMA_COMPLETION_TYPE_THROW /**< block completed with throw */
|
||||
ECMA_COMPLETION_TYPE_THROW, /**< block completed with throw */
|
||||
ECMA_COMPLETION_TYPE_EXIT /**< implementation-defined completion type
|
||||
for finishing script execution */
|
||||
} ecma_CompletionType_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user