From 49eb887cc6325e14211ec4a241ffc4ac98f0f7a9 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 2 May 2023 19:15:45 +0900 Subject: refactor(core): Use `ObjectHasOwn` instead of `ObjectPrototypeHasOwnProperty` (#18952) ES2022 `Object.hasOwn` can be used in snapshot, so I migrate to use it. --- core/internal.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/internal.d.ts b/core/internal.d.ts index c78310aeb..b09d188d8 100644 --- a/core/internal.d.ts +++ b/core/internal.d.ts @@ -637,7 +637,6 @@ declare namespace __bootstrap { export const Object: typeof globalThis.Object; export const ObjectLength: typeof Object.length; export const ObjectName: typeof Object.name; - export const ObjectPrototype: typeof Object.prototype; export const ObjectAssign: typeof Object.assign; export const ObjectGetOwnPropertyDescriptor: typeof Object.getOwnPropertyDescriptor; @@ -646,6 +645,7 @@ declare namespace __bootstrap { export const ObjectGetOwnPropertyNames: typeof Object.getOwnPropertyNames; export const ObjectGetOwnPropertySymbols: typeof Object.getOwnPropertySymbols; + export const ObjectHasOwn: typeof Object.hasOwn; export const ObjectIs: typeof Object.is; export const ObjectPreventExtensions: typeof Object.preventExtensions; export const ObjectSeal: typeof Object.seal; @@ -662,6 +662,7 @@ declare namespace __bootstrap { export const ObjectEntries: typeof Object.entries; export const ObjectFromEntries: typeof Object.fromEntries; export const ObjectValues: typeof Object.values; + export const ObjectPrototype: typeof Object.prototype; export const ObjectPrototype__defineGetter__: UncurryThis< typeof Object.prototype.__defineGetter__ >; -- cgit v1.2.3