Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1359 by [email protected]: ES53 prematurely casts thrown objects to strings
http://code.google.com/p/google-caja/issues/detail?id=1359

What steps will reproduce the problem?
1. In playground r4479:
<script>
  try {
    throw { x: 1 }
  } catch (e) {
    alert("string" == typeof(e));
    alert(1 == e.x);
  }
</script>​

What is the expected output? What do you see instead?

Except to catch the object that was thrown and be able to access it's properties. Instead, tameException prematurely casts the object to a string, presumably because objects are not marked "throwable___".

Please use labels and text to provide additional information.


Reply via email to