Comment #9 on issue 4307 by ad...@chromium.org: Implement well-known symbol `Symbol.toPrimitive`
https://code.google.com/p/v8/issues/detail?id=4307

The ES6 version of ToPrimitive does not play nicely with access-checked objects (similar to issue 4289 with @@isConcatSpreadable). The following test case prints PASS before this change and FAIL after it:

<div id="output"></div>
<script>
function run() {
  var obj = {'[object Window]': 'PASS: No exception'};
  var crossOriginWindow = frames[0];
  var output = document.getElementById('output');
  try {
    output.textContent = obj[crossOriginWindow];
  } catch (e) {
    output.textContent = 'FAIL: Got an exception: ' + e;
  }
}
</script>
<iframe src="http://example.com/"; onload="run()" hidden></iframe>


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