• No misunderstanding - I think there might be a bug in Espruino - I'll look into it.

    If you try a different module it works as I suggested:

    >process.memory().usage
    =17
    >g=require("KeyPad")
    ={ ... }
    >process.memory().usage
    =61
    >g=""
    =""
    >process.memory().usage
    =62
    >Modules.removeAllCached()
    =undefined
    >process.memory().usage
    =19
    
About

Avatar for Gordon @Gordon started