Worse than that:

x = 0
x = -x
foo[x]   // Won't work, x is -0, not a Smi
x += 1
foo[x]   // Probably won't work either,  x is a non-Smi 1

I checked this with --allow-natives-syntax and the %_IsSmi "function".

http://codereview.chromium.org/293023

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to