I figured out the problem: It's all about my bundling script that uses uglifyjs where it drops lastAddr variable in FlashEEPROM by claiming "it's declared but not used". I changed appropriate flag of uglifyjs and all went ok.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon
I figured out the problem: It's all about my bundling script that uses uglifyjs where it drops
lastAddr
variable in FlashEEPROM by claiming "it's declared but not used". I changed appropriate flag of uglifyjs and all went ok.