blob: 51a93b2bff31b24b2cda6dfb4b6609854cbd7ced (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
When an empty string was explicitly casted to a number through `+` or
implicitly through numerical calculations, it was incorrectly treated
as `NaN` and not `0`.
-- Testcase --
{{ +"" }}
{{ "" + 0 }}
{{ "" - 0.0 }}
-- End --
-- Expect stdout --
0
0
0
-- End --
|