summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-01-17 01:17:18 +0900
committerGitHub <noreply@github.com>2023-01-16 17:17:18 +0100
commit6da958d7ec31f2ffd21bb2beb8cc193a62afc55c (patch)
tree348fb3669348653b3907068b9ddc00f2652bdbfa /cli/js
parent40134ffc99848c89e0ab88c03ca85b9122e2384b (diff)
chore: update dlint to v0.37.0 for GitHub Actions (#17295)
Updated third_party dlint to v0.37.0 for GitHub Actions. This PR includes following changes: * fix(prefer-primordials): Stop using array pattern assignments * fix(prefer-primordials): Stop using global intrinsics except for `SharedArrayBuffer` * feat(guard-for-in): Apply new guard-for-in rule
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/40_testing.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js
index 43232ef90..d71609dd1 100644
--- a/cli/js/40_testing.js
+++ b/cli/js/40_testing.js
@@ -26,6 +26,7 @@
MapPrototypeSet,
MathCeil,
ObjectKeys,
+ ObjectPrototypeHasOwnProperty,
ObjectPrototypeIsPrototypeOf,
Promise,
SafeArrayIterator,
@@ -167,6 +168,9 @@
const details = [];
for (const key in post.ops) {
+ if (!ObjectPrototypeHasOwnProperty(post.ops, key)) {
+ continue;
+ }
const preOp = pre.ops[key] ??
{ opsDispatchedAsync: 0, opsCompletedAsync: 0 };
const postOp = post.ops[key];