Project: titanium
Issue TIMOB-18770: HAL: Variables using unicode characters cause Application Error
When you use a special unicode character in a variable name (which is perfectly fine on iOS and Android and valid JS) the application will crash. h1. Test case {code:javascript} var φ = 'hello world'; Ti.UI.createWindow({ backgroundColor: "white" }).open(); {code} h1. Crash {code} [ERROR] Application Error: { [ERROR] "message": "Error while require(./app) Invalid character '\\u0966'", [ERROR] "native_stack": [ [ERROR] "JSExportClass::CallNamedFunction" [ERROR] ], [ERROR] "stack": "require@[native code]\nglobal code", [ERROR] "line": 2 [ERROR] } {code}
Story points: 21