If we write
mase_me= new Function('','return \'aaa\';');
alert(mase_me.toString());
then displays function anonymous() { return 'aaa'; }
. Further i'm trying to call function, I'm write
alert(anonymous());
but i have an error
[18:23:40.220] ReferenceError: anonymous is not defined @ http://fiddle.jshell.net/_display/:33
I'm excepted that alert(anonymous());
will display aaa
because if I write
made_me=function aaa() { return 'aaa'; }
alert(made_me.toString());
then will display function aaa(){ return 'aaa'}
and
alert(aaa());
will display aaa
.