first commit, still mostly just touching up formatting
[tinyjs-rewrite.git] / tests / test021.42.js
blob99ef7ffc1676afe752b55f1171a7c8d4e89fe4f3
1 /* Javascript eval */
3 // 42-tiny-js change begin --->
4 // in JavaScript eval is not JSON.parse
5 // use parentheses or JSON.parse instead
6 //myfoo = eval("{ foo: 42 }");
7 myfoo = eval("("+"{ foo: 42 }"+")");
8 //<--- 42-tiny-js change end
10 result = eval("4*10+2")==42 && myfoo.foo==42;