PDA

View Full Version : object


kentyler
04-24-2003, 08:32 AM
just checking. it seems Object.hasOwnProperty is not included, Object.propertyIsenumerable is not included, but Object.toLocaleString and Object.toString and Object.valueOf work.

Object.isPrototypeOf is not included, but .constructor works

<canvas debug="true">
<script>
<![CDATA[
var o = new Object();
Object.prototype.isPrototypeOf(o); // true: o is an object
Function.prototype.isPrototypeOf(o.toString) // true: toString is a function
Array.prototype.IsPrototypeOf([1,2,3]); // true: [1,2,3] is an array
debug.write( (o.constructor == Object) );
debug.write( (o.toString.constructor == Function) );

]]>
</script>
</canvas>

antun
04-24-2003, 10:35 AM
I think toLocaleString might not work in the Flash 5 player, so it's better to exclude it.

The rest sound right. (i.e. hasOwnProperty, etc. are not included).

-Antun