Status: New
Owner: ----

New issue 3356 by PerterPon: a bug about shift method of Array
http://code.google.com/p/v8/issues/detail?id=3356

Hey guys, I found a bug about shift method of Array, here is the code:

--------------------------
var a = [ 0, 1, 2 ];
Object.defineProperty( a, 0, {
    writable : false
} );
a.shift();
--------------------------

This code works in chrome and node, also in the latest version of V8. But, in firefox, throw an error:"TypeError: a.shift(...) is read-only". I checked ecmaScript 5, and I found firefox is right. I also found a bug about pop method of Array, when you define property configurable to false, then call pop method, it'l still work, but it was fixed in 2013-10-22.

--
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/d/optout.

Reply via email to