My favorites | Sign in
v8
Project Home Downloads Wiki Issues Source Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 691: Sequencing of getter side effects wrong
20 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  verwa...@chromium.org
Closed:  Jan 2014
Cc:  mstarzinger@chromium.org
ES5


Sign in to add a comment
 
Reported by erights, May 1, 2010
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.
May 22, 2010
#1 erights@google.com
This issue should be marked with the ES5 label.
May 22, 2010
#2 erights@google.com
This issue should be marked with the ES5 label.
May 23, 2010
#3 lrn%chro...@gtempaccount.com
(No comment was entered for this change.)
Labels: ES5
May 30, 2012
Project Member #4 mstarzinger@chromium.org
(No comment was entered for this change.)
Status: Assigned
Owner: mstarzinger@chromium.org
Labels: Type-Bug Priority-Medium
Nov 15, 2012
Project Member #5 mstarzinger@chromium.org
 Issue 2391  has been merged into this issue.
May 10, 2013
Project Member #6 svenpanne@chromium.org
 Issue 2679  has been merged into this issue.
Jul 19, 2013
Project Member #7 yangguo@chromium.org
 Issue 2788  has been merged into this issue.
Sep 2, 2013
Project Member #8 verwa...@chromium.org
 Issue 2866  has been merged into this issue.
Jan 31, 2014
Project Member #9 verwa...@chromium.org
Fixed in https://code.google.com/p/v8/source/detail?r=19001
Status: Fixed
Owner: verwa...@chromium.org
Cc: mstarzinger@chromium.org
Sign in to add a comment

Powered by Google Project Hosting