I just found that in recent versions of Chrome 42 and FF 37.0.2 these lines of code are completely legal
"use strict"; var o = { p: 1, p: 2 };
(copied from MDN )
In IE 10-11 and Opera 28.0.1750, it throws an error as expected.
In the same time
abc=0;
raises an error (undeclared variable) as expected.
Does anyone know what caused these changes?
source share