[TIMOB-6150] Android: Packaging - Rhino/v8 - Studio console logs "WARNING - Suspicious code" and fails to package
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-09T13:28:49.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-46, Release 1.8.0.1 |
Components | Android |
Labels | branch-v8 |
Reporter | Eric Merriman |
Assignee | Opie Cyrus |
Created | 2011-11-10T17:04:50.000+0000 |
Updated | 2011-12-09T13:28:49.000+0000 |
Description
Description:
While packaging some apps for testing, I got a strange error in the console during compile which prevents the build from completing
[ERROR] /Users/eric/Documents/fromGit/titanium_mobile/demos/KitchenSink/build/android/bin/assets/Resources/examples/table_view_layout_2.js:13: WARNING - Suspicious code. The result of the 'getprop' operator is not being used.
e.value; // search string as user types
^
0 error(s), 1 warning(s)
A quick check of the code in question shows:
search.addEventListener('change', function(e)
{
e.value; // search string as user types
});
Steps to reproduce:
1) Sync with master
2) Import KS into studio
3) Attempt to package for distribution on Android
4) Watch console log
Result:
No .apk produced, console warning
Expected:
No warning, .apk produced as expected
Tested with 1.8.0.1.v20111209011840 apk is generated but still seeing the warning of the suspicious code.
Marshall said that the fix is for the build error it can now compile, warning is because of code issue in KS