Clear bug in 15.10.6.2 step 17

View: New views
2 Messages — Rating Filter:   Alert me  

Clear bug in 15.10.6.2 step 17

by Jeff Walden-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

17. Call the [[DefineOwnProperty]] internal method of A with arguments "length", Property Descriptor
{[[Value]]: n + 1, [[Writable]: true, [[Enumerable]]: true, [[Configurable]]: true}, and true.

This is attempting to define an enumerable, configurable length property on an array, which will throw an exception trying to change the configurability of a non-configurable property.

Jeff
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss

RE: Clear bug in 15.10.6.2 step 17

by Allen Wirfs-Brock-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, arguably that step isn't needed at all because step 20.b implicitly sets the length

>-----Original Message-----
>From: es-discuss-bounces@... [mailto:es-discuss-
>bounces@...] On Behalf Of Jeff Walden
>Sent: Monday, September 21, 2009 2:32 PM
>To: es-discuss@...
>Subject: Clear bug in 15.10.6.2 step 17
>
>17. Call the [[DefineOwnProperty]] internal method of A with arguments
>"length", Property Descriptor
>{[[Value]]: n + 1, [[Writable]: true, [[Enumerable]]: true,
>[[Configurable]]: true}, and true.
>
>This is attempting to define an enumerable, configurable length property
>on an array, which will throw an exception trying to change the
>configurability of a non-configurable property.
>
>Jeff
>_______________________________________________
>es-discuss mailing list
>es-discuss@...
>https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss