add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change.

This commit is contained in:
Trey Griffith
2013-05-08 15:29:46 -04:00
committed by Mihai Bazon
parent 11e24d53a1
commit 1e9f98aa51

View File

@@ -19,12 +19,14 @@ dot_properties: {
a["if"] = "if";
a["*"] = "asterisk";
a["\u0EB3"] = "unicode";
a[""] = "whitespace";
}
expect: {
a.foo = "bar";
a["if"] = "if";
a["*"] = "asterisk";
a.\u0EB3 = "unicode";
a[""] = "whitespace";
}
}
@@ -38,11 +40,13 @@ dot_properties_es5: {
a["if"] = "if";
a["*"] = "asterisk";
a["\u0EB3"] = "unicode";
a[""] = "whitespace";
}
expect: {
a.foo = "bar";
a.if = "if";
a["*"] = "asterisk";
a.\u0EB3 = "unicode";
a[""] = "whitespace";
}
}