@@ -1222,15 +1222,15 @@ func TestObject(t *testing.T) {
1222
1222
// Check the string-to-int optimization
1223
1223
expectPrintedMangle (t , "x = { '0': y }" , "x = { 0: y };\n " )
1224
1224
expectPrintedMangle (t , "x = { '123': y }" , "x = { 123: y };\n " )
1225
- expectPrintedMangle (t , "x = { '-123': y }" , "x = { -123: y };\n " )
1225
+ expectPrintedMangle (t , "x = { '-123': y }" , "x = { \" -123\" : y };\n " )
1226
1226
expectPrintedMangle (t , "x = { '-0': y }" , "x = { \" -0\" : y };\n " )
1227
1227
expectPrintedMangle (t , "x = { '01': y }" , "x = { \" 01\" : y };\n " )
1228
1228
expectPrintedMangle (t , "x = { '-01': y }" , "x = { \" -01\" : y };\n " )
1229
1229
expectPrintedMangle (t , "x = { '0x1': y }" , "x = { \" 0x1\" : y };\n " )
1230
1230
expectPrintedMangle (t , "x = { '-0x1': y }" , "x = { \" -0x1\" : y };\n " )
1231
1231
expectPrintedMangle (t , "x = { '2147483647': y }" , "x = { 2147483647: y };\n " )
1232
1232
expectPrintedMangle (t , "x = { '2147483648': y }" , "x = { \" 2147483648\" : y };\n " )
1233
- expectPrintedMangle (t , "x = { '-2147483648': y }" , "x = { -2147483648: y };\n " )
1233
+ expectPrintedMangle (t , "x = { '-2147483648': y }" , "x = { \" -2147483648\" : y };\n " )
1234
1234
expectPrintedMangle (t , "x = { '-2147483649': y }" , "x = { \" -2147483649\" : y };\n " )
1235
1235
}
1236
1236
0 commit comments