This needs to disallow more things. It doesn't correctly handle
function f() { const x = 42; x += 1; return x; }
==> returns 43, should be 42. I think you just forgot to treat compound
assignments. It also doesn't handle
function f() { var x = 42; while (true) { const y = x; if (--x == 0) return
y;
}} ==> returns 1, should return 42. http://codereview.chromium.org/6026006/ -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
