repo.or.cz
/
tinyjs-rewrite.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
formatting 90% done; encapsulated everything in the TinyJS namespace, and renamed...
[tinyjs-rewrite.git]
/
.svn
/
pristine
/
6c
/
6c31b2bdb233bafb1bbf172a9065e3ec04d54cde.svn-base
blob
fc3f427244e46c5fd898496e0ad69352005ac93c
1
/* Javascript eval */
2
3
mystructure = { a:39, b:3, addStuff : function(c,d) { return c+d; } };
4
5
mystring = JSON.stringify(mystructure, undefined);
6
7
mynewstructure = eval(mystring);
8
9
result = mynewstructure.addStuff(mynewstructure.a, mynewstructure.b);