fix generation tests with parenthesized expressions and trailing comments

This commit is contained in:
Sebastian McKenzie 2015-01-02 02:59:53 +11:00
parent abe9c4fd30
commit 02512da38d
2 changed files with 7 additions and 4 deletions

View File

@ -6,5 +6,6 @@ var test = {
[( /*
* Inside bracket init
*/
"b")]: "2"
"b"
)]: "2"
}, ok = 42;

View File

@ -7,7 +7,8 @@ var test = {
[( /*
* Inside bracket init
*/
"b")]: "2",
"b"
)]: "2",
["c"
/*
@ -18,8 +19,9 @@ var test = {
["d"]: "4",
[(
// Inside bracket, line comment
"e")]: "5",
// Inside bracket, line comment
"e"
)]: "5",
["f"
// After bracket, line comment