[Webkit-unassigned] [Bug 7012] Coerce javascript objects to appleScript compatible types prior to returning them to applescript

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Feb 3 11:51:59 PST 2006


ap at nypop.com changed:

           What    |Removed                     |Added
   Attachment #6223|                            |review?
               Flag|                            |

------- Comment #2 from ap at nypop.com  2006-02-03 11:51 PDT -------
Created an attachment (id=6223)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=6223&action=view)
proposed patch

This adds conversion for Boolean, String, Number and Date, and implicitly calls
toString() for unknown object types.

I am not sure if Array can really be converted to an AppleScript list
reliably... JavaScript arrays can be sparse, associated, or even contain
circular references (if I'm not mistaken) - so, I don't see any straightforward
(as in "no surprises for the user") way to convert them, other than toString().

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list