Comment #2 on issue 2712 by [email protected]: slice hangs
http://code.google.com/p/v8/issues/detail?id=2712

So if the spec has a bug then that's OK???? Really? That's your answer? "That's just JavaScript for you...."

I get that this is an obscure bug, but your response is lazy and ambivalent !!!

I also don't think it's the same as for(;;) since anyone who looks at the for statement will see an infinite loop. If someone runs into the slice bug, it could take them quite a long time to figure out what's happening.

Imagine:

var o = {
   length: 0
};

Now somewhere else in the code:

length = x.length - 1; // this bug makes it = -1

Then somewhere else in the code:

var a = [].slice.call(o, 0); // this SHOULD return an empty array NOT HANG THE PROGRAM


This is vastly different than for(;;;).

/rant


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to