fork download
  1. ob = function(arg) { var prop = 1, meth = function(x) { return x+x; }; return eval(arg) }
  2. print(ob("meth(prop)"))
  3. sum = function(x) { return x + x }
  4. print(sum(1))
Success #stdin #stdout 0.01s 4984KB
stdin
Standard input is empty
stdout
2
2