2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/library_ObjectPrototypeProperties.ts ===
|
|
|
|
// Properties of the Object Prototype Object as per ES5 spec
|
|
|
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-15.2.4
|
|
|
|
Object.prototype.constructor;
|
|
|
|
>Object.prototype.constructor : Function
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>constructor : Function
|
|
|
|
|
|
|
|
Object.prototype.toString();
|
|
|
|
>Object.prototype.toString() : string
|
|
|
|
>Object.prototype.toString : () => string
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>toString : () => string
|
|
|
|
|
|
|
|
Object.prototype.toLocaleString();
|
|
|
|
>Object.prototype.toLocaleString() : string
|
|
|
|
>Object.prototype.toLocaleString : () => string
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>toLocaleString : () => string
|
|
|
|
|
|
|
|
Object.prototype.valueOf();
|
|
|
|
>Object.prototype.valueOf() : Object
|
|
|
|
>Object.prototype.valueOf : () => Object
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>valueOf : () => Object
|
|
|
|
|
|
|
|
Object.prototype.hasOwnProperty("string");
|
|
|
|
>Object.prototype.hasOwnProperty("string") : boolean
|
|
|
|
>Object.prototype.hasOwnProperty : (v: string) => boolean
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>hasOwnProperty : (v: string) => boolean
|
|
|
|
|
|
|
|
Object.prototype.isPrototypeOf(Object);
|
|
|
|
>Object.prototype.isPrototypeOf(Object) : boolean
|
|
|
|
>Object.prototype.isPrototypeOf : (v: Object) => boolean
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>isPrototypeOf : (v: Object) => boolean
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
Object.prototype.propertyIsEnumerable("string");
|
|
|
|
>Object.prototype.propertyIsEnumerable("string") : boolean
|
|
|
|
>Object.prototype.propertyIsEnumerable : (v: string) => boolean
|
|
|
|
>Object.prototype : Object
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : Object
|
|
|
|
>propertyIsEnumerable : (v: string) => boolean
|
|
|
|
|