[TIMOB-2205] Android regression: typeof returns "object" instead of "function" for native functions
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, function, kroll, object, typeof |
Reporter | Brion Vibber |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:13:28.000+0000 |
Updated | 2011-04-17T01:58:24.000+0000 |
Description
Functions on native proxies and modules are being reported as 'object' by the typeof operator on Android in current 1.5 code from git; they should probably return 'function' to keep from confusing code.
This source:
Ti.API.info('typeof Ti.API.info is: ' + typeof Ti.API.info);
On iOS gives the expected "function":
[INFO] typeof Ti.API.info is: function
On Android with git trunk we get unexpected "object":
[INFO] [4,427] typeof Ti.API.info is: object
Whereas under 1.4.1.1 we got "function" as we expected:
[INFO] [2,364] typeof Ti.API.info is: function
This was recently resolved, marking as duplicate of #2288
Pass Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8), Android 1.6/2.1 custom app.