[Laszlo-dev] Any suggestions on this JScript lossage?
Max Carlson
max at openlaszlo.org
Fri Nov 2 17:33:01 PDT 2007
It appears JScript is skipping 'built-in' methods:
http://msdn2.microsoft.com/en-us/library/kb6te8d3.aspx
You could try setting the 'propertyIsEnumerable' property on toString...
I bet this happens with the other built-in methods too (isPrototypeOf,
hasOwnProperty, toLocaleString, valueOf)...
P T Withington wrote:
> 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>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list