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 4249 by a...@chromium.org: Wrong evaluation order for keyed lookup
https://code.google.com/p/v8/issues/detail?id=4249

  'language/expressions/assignment/S11.13.1_A7_T1': [FAIL],
  'language/expressions/assignment/S11.13.1_A7_T2': [FAIL],
  'language/expressions/assignment/S11.13.1_A7_T3': [FAIL],

One example:

assert.throws(TypeError, function() {
  var base = null;
  var prop = {
    toString: function() {
      $ERROR("property key evaluated");
    }
  };
  var expr = function() {
    $ERROR("right-hand side expression evaluated");
  };

  base[prop] = expr();
});

null is not a valid object so we should not do the ToName for prop

--
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