correcting broken fix for #2333 regarding string escape sequences

Sorry for all the commits! It should really be done this time.
This commit is contained in:
Michael Ficarra
2012-05-16 10:30:55 -04:00
parent da2298988a
commit 29b9c3bb29
3 changed files with 44 additions and 17 deletions

View File

@@ -70,7 +70,11 @@ test "#2333: more duplicate property prohibitions", ->
strict '{.1:0, 1e-1:0}'
strict '{100:0, 1e2:0}'
strict '{"\\0":0, "\\x00":0}'
strict '{"\\n":0, "\\x0A":0}'
strict '{"\\\\":0, "\\x5c":0}'
strict 'a = 0; {a, "a":0}'
strict "{'\\'a':0, \"'a\":0}"
strict "{'\\\\a':0, '\\\\a':0}"
strictOk '{0:0, "0x0":0}'
strictOk '{"a":0, "\'a\'":0}'