• Hi,

    Thanks for posting up - this sounds really interesting.

    Personally, I wouldn't advocate using frameworks inside Espruino as often you just end up including a bunch of bloat. But that doesn't mean you shouldn't try!

    As @Robin said the Features page has a list of what's supported and what isn't. You may find you have some success transpiling the module to an earlier version of JavaScript to remove some of the features that aren't available.

    In terms of Set, you may find you can just use Object accesses - for instance:

    mySet = {}l
    Set.prototype.add(value) -> mySet[value]=1
    Set.prototype.clear() -> mySet={};
    Set.prototype.delete(value) -> delete mySet[value]
    Set.prototype.has(value) -> mySet[value]
    

    It's more limited with the types of values you can add, but it may still be enough for you.

About

Avatar for Gordon @Gordon started