summaryrefslogtreecommitdiff
path: root/cli/js
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 /cli/js
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 'cli/js')
-rw-r--r--cli/js/40_testing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js
index 8afcb74ee..e269b9c9f 100644
--- a/cli/js/40_testing.js
+++ b/cli/js/40_testing.js
@@ -21,7 +21,7 @@ const {
MapPrototypeSet,
MathCeil,
ObjectKeys,
- ObjectPrototypeHasOwnProperty,
+ ObjectHasOwn,
ObjectPrototypeIsPrototypeOf,
Promise,
SafeArrayIterator,
@@ -166,7 +166,7 @@ function assertOps(fn) {
const details = [];
for (const key in post.ops) {
- if (!ObjectPrototypeHasOwnProperty(post.ops, key)) {
+ if (!ObjectHasOwn(post.ops, key)) {
continue;
}
const preOp = pre.ops[key] ??