Issue 834: array.sort(fn) fails in valija
http://code.google.com/p/google-caja/issues/detail?id=834

New issue report by felix8a:
<script>
var v = [1, 2, 3, 4, 5];
var cmp = function (a, b) {
   return (a < b) ? -1 : (b < a) ? +1 : 0;
};
v.sort(cmp);
</script>

run in the testbed, it throws an exception
message:"expected function instead of object: function (a, b) {\n [cajoled
code]\n}"


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

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to 
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to