-
• #2
E.dumpStr()
-dump()
was a very early addition, and later things went in theE
Object to try not to crowd the global namespace any more :) -
• #3
Oh. Ahem. Yes. Thank you.
(Why didn't I see this one?)
Sorry for bothering. -
• #4
neatly spreading code through the puck.js field of mine...
literally... or envisonally:
...neatly spreading code through the puck.js mine field (without getting blown up)?
-
• #5
Yeah.
Already missed a little piezo speaker on the pucks.
Could do a little rattling sound every time something goes wrong...By the way - this is the code: http://forum.espruino.com/conversations/297473/
Executing
dump()
logs the current interpreter state to the console.Is there a way to get the same output in a variable?
I can do this for a single function via toString():
How can I do the same with the whole interpreter state?
PS: Warning - this is the perfect foundation for writing the first puck.js worm - which I intend to do ;-)
PS2: ...not for harming anyone, but for neatly spreading code through the puck.js field of mine...