Status: New
Owner: ----

New issue 691 by erights: Sequencing of getter side effects wrong
http://code.google.com/p/v8/issues/detail?id=691

See https://mail.mozilla.org/pipermail/es-discuss/2010-May/011064.html for
context

    var x = 3;
    obj = { get foo() { ++x; return function(n) { return x * n; }; }};
    obj.foo(x *= 2);  // should return 64

The ES5 spec requires 64. FF, Safari, and Opera all correctly give 64. V8
gives 42, which is consistent with the theory that the method call's
arguments were evaluated before the getter was called.

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

Reply via email to