""+{toString:function(){ return "" }} or ""+{valueOf:function(){ return "" }} should return "" but JStillery returns "[object Object]".
The following code should execute alert(/pass/) but due to this behavior an inifinity loop happens on JStillery.
x = ""+{
toString: function() {
return "";
}
};
if (x) {
Function("while(1){};return;")();
} else {
alert(/pass/);
}
Hi @masatokinugawa ,
thanks!
ATM toString/valueOf override and native functions overwrite are not supported, I don't plan to add them soon but it's definitely an important feature to be in the project!
""+{toString:function(){ return "" }}
or""+{valueOf:function(){ return "" }}
should return""
but JStillery returns"[object Object]"
. The following code should executealert(/pass/)
but due to this behavior an inifinity loop happens on JStillery.