Bug 11130 - Convert "undefined" to AE missing value
Summary: Convert "undefined" to AE missing value
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Alexey Proskuryakov
URL: http://developer.apple.com/technotes/...
Depends on:
Reported: 2006-10-03 02:48 PDT by Alexey Proskuryakov
Modified: 2006-10-03 21:39 PDT (History)
0 users

See Also:

proposed patch (2.80 KB, patch)
2006-10-03 12:18 PDT, Alexey Proskuryakov
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.