Closed
Description
- Version: v4.3.0
- Platform: Linux kharto-dev01 3.16.0-4-amd64 deps: update openssl to 1.0.1j #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux
i found a bug that node.js stop me the code differently.
Please refer the the following code:-
//no error
var maximum = Math.max(
1,
10);
//error show
var maximum = Math.max(
1
,10);
// error show
var maximum = Math.max(
1,
10
);
I believe the above code should produce the same result, the position of the comma and closing bracket should not affect the result.
However, node.js throw an error message as:-
SyntaxError: missing ) after argument list
I tested the code in node version 0.12.4, no error shown.