4

From Coffeekup and JAML's source, (while working on question), we can see a way to hack ruby's instance eval into Javascript (JAML author explains more). It involves decompiling the function, and evaluating it around a with block.

The question is: is this supported all around browsers/js runtimes? I know it works on firefox, opera and chrome, but toString on function is not consistent among platforms, hence the question.

Community
  • 1
  • 1
Daniel Ribeiro
  • 3,110
  • 3
  • 23
  • 49

1 Answers1

0

I've checked it out, and It does work on all browsers.

Daniel Ribeiro
  • 3,110
  • 3
  • 23
  • 49