[ This is the translated & modified version from http://cafe.naver.com/fusefactory/366 ]
- Fuse version 1.8.1 (build 15610)
- Operating system version: macOS
- Problem:
let
keyword (ES6) seems not working well for old iOS versions (e.g., 9).
Note that it works pretty well on iOS 10, 11, and usual Android phones (what the user tested).
Is it intentional or a kind of bug, or maybe JS engine might be different for old iOS versions? - Tested environment: iPhone 6 simulator device (8.4 and 9.3) => NOT WORKING
- Example code:
<App>
<JavaScript>
var count = 0;
var data = [ "", "", "", "", ""];
count = data.length;
let MAX = 6;
if ( count < MAX ) {
debug_log("Count is small.");
}
else {
debug_log("Count is big!");
}
module.exports.count = count;
</JavaScript>
<Text Alignment="Center" Value="{count}" FontSize="50" />
</App>