That looks great! While dump does work, it does dump everything. You could just print Object.keys(global)?
Good point about eval(undefined). Does this actually fail, or is it that accessing a variable that doesn't exist is causing a reference error?
© Espruino, powered by microcosm.
Report a problem