[TIMOB-27510] Android: Ti.UI.WebView.evalJS assumes no trailing semicolon
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 8.2.1 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | engSchedule |
| Reporter | Christopher Williams |
| Assignee | Unknown |
| Created | 2019-10-29T17:31:42.000+0000 |
| Updated | 2019-10-29T17:32:27.000+0000 |
Description
When evaluating JS passed in, the underlying code assumes the user JS code has no trailing semicolon and "blindly" appends one. If the user code *did* have a trailing semicolon, you would inadvertently get a null/undefined result rather than the value of the last expression/statement.
See https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/Resources/ti.ui.webview.test.js#L209-L211
No comments