Bug 11130

Summary: Convert "undefined" to AE missing value
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit Misc.Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://developer.apple.com/technotes/tn2002/tn2106.html#objects
Attachments:
Description Flags
proposed patch timothy: review+

Description Alexey Proskuryakov 2006-10-03 02:48:10 PDT
There is a special constant for missing value in Apple Events, we should use it.
Comment 1 Alexey Proskuryakov 2006-10-03 12:18:16 PDT
Created attachment 10881 [details]
proposed patch

There's also cUndefined, but that one is never mentioned in documentation I could find, and is actually for internal use: <http://listserv.dartmouth.edu/scripts/wa.exe?A2=ind9911&L=macscrpt&T=0&P=9383>.

The null descriptor is technically in the same category as undefined - we are not supposed to return it AFAICT. However, many applications return it now (apparently, Cocoa Scripting is to blame), and we probably need some way to differentiate JS null from JS undefined anyway. The other cases (UnspecifiedType, GetterSetterType) should probably be made to just return AE errors eventually.
Comment 2 Alexey Proskuryakov 2006-10-03 21:39:29 PDT
Committed revision 16765.