Comment #6 on issue 2779 by [email protected]: Frozenness ignored by optimized ++/--
http://code.google.com/p/v8/issues/detail?id=2779

Correction/update — we can reproduce the bug in 29.0.1547.22 and 30.0.1574.0, but not in strict mode. Is there a way to do so? If it only occurs in non-strict mode, we (Caja) can stop worrying about it.

This is the simplest thing I've found which both reproduces the bug and runs in strict mode, but in strict mode it returns the correct 5:

(function() { "use strict":
  function f(o) { o.x++ }
  return (function() {
    var o = {x: 5};
    Object.freeze(o);
    for (var i = 0; i < 10000; i++) {try { f(o); } catch (e) {} }
    return o.x;
  })();
})();

--
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
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to