summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/primordials.mjs
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-05-02 19:15:45 +0900
committerGitHub <noreply@github.com>2023-05-02 12:15:45 +0200
commit49eb887cc6325e14211ec4a241ffc4ac98f0f7a9 (patch)
tree8dec27c42c45b8e0bfaa7d4b886546fbdc942b64 /ext/node/polyfills/internal/primordials.mjs
parentcf893741c3206f55eaac1999f50f1018122f7b85 (diff)
refactor(core): Use `ObjectHasOwn` instead of `ObjectPrototypeHasOwnProperty` (#18952)
ES2022 `Object.hasOwn` can be used in snapshot, so I migrate to use it.
Diffstat (limited to 'ext/node/polyfills/internal/primordials.mjs')
-rw-r--r--ext/node/polyfills/internal/primordials.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/primordials.mjs b/ext/node/polyfills/internal/primordials.mjs
index 1639efdb5..8127eebac 100644
--- a/ext/node/polyfills/internal/primordials.mjs
+++ b/ext/node/polyfills/internal/primordials.mjs
@@ -12,7 +12,7 @@ export const ArrayPrototypeSort = (that, ...args) => that.sort(...args);
export const ArrayPrototypeUnshift = (that, ...args) => that.unshift(...args);
export const ObjectAssign = Object.assign;
export const ObjectCreate = Object.create;
-export const ObjectPrototypeHasOwnProperty = Object.hasOwn;
+export const ObjectHasOwn = Object.hasOwn;
export const RegExpPrototypeTest = (that, ...args) => that.test(...args);
export const RegExpPrototypeExec = RegExp.prototype.exec;
export const StringFromCharCode = String.fromCharCode;