Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27510] Android: Ti.UI.WebView.evalJS assumes no trailing semicolon

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.2.1
Fix Version/sn/a
ComponentsAndroid
LabelsengSchedule
ReporterChristopher Williams
AssigneeUnknown
Created2019-10-29T17:31:42.000+0000
Updated2019-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

Comments

No comments

JSON Source