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
parent 6b5c448d79
commit 1120971a6e
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.