Status: New
Owner: ----

New issue 2367 by [email protected]: --harmony_scoping breaks existing ES5 code
http://code.google.com/p/v8/issues/detail?id=2367

The following ES5 code throws an error "Variable 'f' has already been declared"

function f() {
  return 'outer';
}

{
  var f = function f() {
    return 'inner';
  };

  assertEquals('inner', f());
}

assertEquals('inner', f());


With 1JS the above must continue to work.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to