Bug #392
String variables are not returned properly from JavaScript. They cause a type mismatch.
Start date:
06/17/2020
Due date:
% Done:
0%
Estimated time:
1:00 h
Affected version:
Description
Example:
This works:
Print { navigator.appCodeName }
Result is:
Mozilla
This does NOT work:
X$ = { navigator.userAgent }
Result is:
Error: type mismatch at line...
Updated by Brian Flanagan over 3 years ago
- Assignee set to Francois Lionet
- Estimated time set to 24:00 h
- Affected version changed from 0.9.9.3 to Beta RC2
Just assigned this to Francois, as this is a non-trivial transpiler issue.
I also reset the affected version, since this is definitely still an issue in RC2.
(Please adjust the estimated time appropriately, Francois!)
Updated by Brian Flanagan over 3 years ago
- Assignee changed from Francois Lionet to Brian Flanagan
- Estimated time changed from 24:00 h to 1:00 h
Updated by Brian Flanagan over 3 years ago
- Status changed from New to Resolved
Thanks for the help, Francois! It was easier than I thought to fix this.
Just using $ before a JavaScript return value will do the string conversion.
The JavaScript and AOZ string formats are not compatible, so conversion was needed.
NOTE: We need to add $ to our documentation!