Fix faulty compression

`String(x + 5)` is not always the same as `x + "5"`.  Overlooked that. :-(

Close #350
This commit is contained in:
Mihai Bazon
2013-11-20 21:13:16 +02:00
parent 7d11b96f48
commit 50b8d7272c
2 changed files with 3 additions and 15 deletions

View File

@@ -54,15 +54,13 @@ strings_concat: {
input: {
f(
String(x + 'str'),
String('str' + x),
String(x + 5)
String('str' + x)
);
}
expect: {
f(
x + 'str',
'str' + x,
x + '5'
'str' + x
);
}
}
}