Introduce jsp_label_remove_all_labels interface that removes all jump labels registered at the moment of call for usage upon raise of SyntaxError during parse.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-06-19 00:11:25 +03:00
parent bd9d1d4afd
commit 9b0f5d439d
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -47,6 +47,18 @@ jsp_label_finalize (void)
JERRY_ASSERT (label_set_p == NULL);
} /* jsp_label_finalize */
/**
* Remove all labels
*
* Note:
* should be used only upon a SyntaxError is raised
*/
void
jsp_label_remove_all_labels (void)
{
label_set_p = NULL;
} /* jsp_label_remove_all_labels */
/**
* Add label to the current label set
*/