Files
Esben Sparre Andreasen fbd3a097a2 JS: add misc. tests
2018-10-29 09:22:53 +01:00

27 lines
211 B
JavaScript

const x = 23, y = 42;
// NOT OK
x = 42;
// NOT OK
y = 23;
// NOT OK
var y = -1;
// NOT OK
++x;
var z = 56;
// OK
z = 72;
// OK
const s = "hi";
(function (){
const c = null;
for ([ c ] of o);
});