Status: Accepted
Owner: ----
CC: [email protected],  [email protected]
Labels: Type-Bug Priority-Medium HW-All OS-All

New issue 3684 by [email protected]: ElementsAccessor::SetLength does not respect non-writeablity of length
https://code.google.com/p/v8/issues/detail?id=3684

var b = [1,2,3];
Object.defineProperty(b, "length",{ writable: false });
b.pop(); // => should throw, b should be [1, 2, ]

if I force V8 to fall off the fast path by doing Object.observe(b, function() {}) then we hit the correct implementation:

var b = [1,2,3];
Object.observe(b, function () {});
Object.defineProperty(b, "length",{ writable: false });
b.pop();
// TypeError: Cannot assign to read only property 'length' of [object Array]

--
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