Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Low
New issue 878 by [email protected]: Object.seal on dom objects behaves
incorrectly
http://code.google.com/p/v8/issues/detail?id=878
When using seal on dom objects the property mibehaves afterwards if using
getOwnPropertyDescriptor.
The code:
var inputs = window.document.getElementsByTagName("input");
var o = Object.getOwnPropertyDescriptor(inputs, "3");
var r = [];
for (var i in o) { r.push(i+"=>"+o[i]); }
r.join("\n")
Correctly returns:
value=>[object HTMLInputElement]
writable=>true
enumerable=>true
configurable=>true
But if using:
var inputs = window.document.getElementsByTagName("input");
Object.seal(inputs);
var o = Object.getOwnPropertyDescriptor(inputs, "3");
var r = [];
for (var i in o) { r.push(i+"=>"+o[i]); }
r.join("\n")
We get:
value=>1
writable=>true
enumerable=>true
configurable=>false
Where we should expect:
value=>[object HTMLInputElement]
writable=>true
enumerable=>true
configurable=>false
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev