dump() with return possible? #674
Replies: 4 comments
-
Posted at 2016-12-16 by @gfwilliams
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-16 by ChristianW Oh. Ahem. Yes. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-17 by @allObjects
literally... or envisonally: ...neatly spreading code through the puck.js mine field (without getting blown up)? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-17 by ChristianW Yeah. By the way - this is the code: http://forum.espruino.com/conversations/297473/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-16 by ChristianW
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...
Beta Was this translation helpful? Give feedback.
All reactions