[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
Sat Feb 4 08:33:59 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7012





------- Comment #7 from darin at apple.com  2006-02-04 08:33 PDT -------
(From update of attachment 6237)
I'd like Tim Hatcher to review this, but I have a comment:

I don't like having so much code copied and pasted out of JavaScriptCore. We
should add a suitable function to JavaScriptCore that gets us the appropriate
JSValue. It's fine for aeDescFromJSValue to convert from JSValue to AEDesc, but
it shouldn't convert from, say, an object instance to a boolean as it does in
the ObjectType case. We should create something on the JavaScriptCore side that
converts to a boolean, number, or string, and also returns an "isDate" flag.
Then the AE conversion can concentrate on things like converting the date
format, etc.

This would prevent us from having to expose bool_object.h as a Private header
and give us slightly better encapsulation for JavaScriptCore.


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