BeRo1985 / besen

Complete ECMAScript Fifth Edition Implemention in Object Pascal
GNU Lesser General Public License v2.1
217 stars 48 forks source link

This js will cause serious slowness in besen #12

Open tomcygnel opened 8 years ago

tomcygnel commented 8 years ago

Hi!

I'm very impressed with your code. For the most part I haven't had problems but the js script below seems to cause serious slowness in besen.

function main(a)
{
    if (
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1)
    ) {
        return -1;
    } else {
        return 1;
    }   
}