Status: New
Owner:
metaw...@gmail.com
Labels: Type-Defect Priority-Medium
New issue 1467 by
jas...@gmail.com: ES5 working inconsistently with Date
objects
http://code.google.com/p/google-caja/issues/detail?id=1467
What steps will reproduce the problem?
Date does not work correctly in ES5 mode.
Go to
http://caja.appspot.com/?es5=true
<div id="foo"></div>
<script>
document.getElementById("foo").innerHTML = new Date();
try {
alert(new Date())
} catch(e) { alert(String(e)); }
</script>
The DOM updates the date correctly but the alert fails with the following
error:
TypeError: Untaming of guest constructed objects unsupported: Fri May 18
2012 15:06:26 GMT-0700 (PDT)