Status: Assigned
Owner: rossb...@chromium.org
CC: a...@chromium.org,  little...@chromium.org
Labels: Type-Bug Priority-Medium HW-All OS-All Area-Language

New issue 4248 by a...@chromium.org: Compound keyed lookup evaluates key twice
https://code.google.com/p/v8/issues/detail?id=4248

  'language/expressions/compound-assignment/S11.13.2_A5.*': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A6.*': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.10_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.11_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.1_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.2_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.3_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.4_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.5_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.6_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.7_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.8_T4': [FAIL],
  'language/expressions/compound-assignment/S11.13.2_A7.9_T4': [FAIL],

One example:

var propKeyEvaluated = false;
var base = {};
var prop = {
  toString: function() {
    assert(!propKeyEvaluated);
    propKeyEvaluated = true;
    return "";
  }
};
var expr = function() {
  return 0;
};

base[prop] ^= expr();


we end up calling toString() twice.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to