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

This commit is contained in:
Mohamed Hegazy
2017-02-17 16:47:51 -08:00
committed by Arthur Ozga
parent 2c3369e2a4
commit a5d104c841
4 changed files with 65 additions and 71 deletions

2
src/lib/es5.d.ts vendored
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.