Fix #14136: Make Object.create return any all the time

This commit is contained in:
Mohamed Hegazy authored and Arthur Ozga committed 2017-02-28 19:35:06 -08:00
1 parent 2c3369e2a4
commit a5d104c841
4 files changed
+65 -71

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ interface ObjectConstructor {
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create<T extends object>(o: T | null): T | object;
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.