Remove Reflect.enumerate (#47346)

* Remove Reflect.enumerate

It will be removed in Typescript 4.1's es2015 lib because implementers
decided against it. See microsoft/Typescript#38967

* remove reflect/enumerate modules
This commit is contained in:
Nathan Shively-Sanders 2020-09-08 10:47:54 -07:00 committed by GitHub
parent 567076ae0b
commit 26b6d6014a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View File

@ -313,7 +313,6 @@ b = Reflect.defineProperty(a, sym, pd);
b = Reflect.deleteProperty(a, s);
b = Reflect.deleteProperty(a, i);
b = Reflect.deleteProperty(a, sym);
iterableIteratorOfAny = Reflect.enumerate(a);
a = Reflect.get(a, s, a);
a = Reflect.get(a, i, a);
a = Reflect.get(a, sym, a);

View File

@ -462,7 +462,6 @@ declare namespace core {
function construct(target: Function, argumentsList: ArrayLike<any>): any;
function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
function enumerate(target: any): IterableIterator<any>;
function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor;
function getPrototypeOf(target: any): any;
@ -1363,10 +1362,6 @@ declare module "core-js/fn/reflect/delete-property" {
const deleteProperty: typeof core.Reflect.deleteProperty;
export = deleteProperty;
}
declare module "core-js/fn/reflect/enumerate" {
const enumerate: typeof core.Reflect.enumerate;
export = enumerate;
}
declare module "core-js/fn/reflect/get" {
const get: typeof core.Reflect.get;
export = get;
@ -2138,10 +2133,6 @@ declare module "core-js/library/fn/reflect/delete-property" {
const deleteProperty: typeof core.Reflect.deleteProperty;
export = deleteProperty;
}
declare module "core-js/library/fn/reflect/enumerate" {
const enumerate: typeof core.Reflect.enumerate;
export = enumerate;
}
declare module "core-js/library/fn/reflect/get" {
const get: typeof core.Reflect.get;
export = get;