[Laszlo-dev] Any suggestions on this JScript lossage?

P T Withington ptw at pobox.com
Sat Nov 3 05:16:22 PDT 2007


You and Phil found the same reference, minutes apart.

This post is viewed by some as an attempt by MS to derail the ES4  
effort.

On 2007-11-02, at 19:25 EDT, André Bargull wrote:

> Found this page on the web: http://blogs.msdn.com/jscript/archive/2007/10/29/ecmascript-3-and-beyond.aspx
>
> Quote:
> "[...]Did you know that Custom properties that shadow [[DontEnum]]  
> properties on Object.prototype are not enumerated using for-in in IE? 
> [...]"
>
>> This is the problem. In IE6, 'toString' will not be enumerated,  
>> even  if it is an explicit property in an Object:
>>
>> lzx> for (var k in {foo: 1, toSTring: 2}) Debug.write(k)
>> foo
>> toSTring
>> lzx> for (var k in {foo: 1, toString: 2}) Debug.write(k)
>> foo
>> lzx>




More information about the Laszlo-dev mailing list