Implement full support of strict mode in parser.

This commit is contained in:
Ilmir Usmanov
2014-10-20 16:54:14 +04:00
parent 8f5160d6bf
commit 3f7fca4d39
3 changed files with 142 additions and 1 deletions
+6
View File
@@ -37,6 +37,12 @@ lp_string_equal (lp_string s1, lp_string s2)
bool
lp_string_equal_s (lp_string lp, const char *s)
{
return lp_string_equal_zt (lp, (const ecma_char_t *) s);
}
bool
lp_string_equal_zt (lp_string lp, const ecma_char_t *s)
{
for (ecma_length_t i = 0; i < lp.length; i++)
{
+1
View File
@@ -28,5 +28,6 @@ lp_string;
bool lp_string_equal (lp_string, lp_string);
bool lp_string_equal_s (lp_string, const char *);
bool lp_string_equal_zt (lp_string, const ecma_char_t *);
#endif /* LP_STRING */