Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 140836a

Browse filesBrowse files
goto-bus-stoptargos
authored andcommitted
util: fix comment typos
When the deep(Strict)Equal comparison functions were moved to an internal module, a variable named `current` was replaced with `val1`. That accidentally also replaced a few "currently"s in comments. Refs: #16084 PR-URL: #21436 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 91f111f commit 140836a
Copy full SHA for 140836a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎lib/internal/util/comparisons.js‎

Copy file name to clipboardExpand all lines: lib/internal/util/comparisons.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function setHasEqualElement(set, val1, strict, memo) {
287287
return false;
288288
}
289289

290-
// Note: we val1ly run this multiple times for each loose key!
290+
// Note: we currently run this multiple times for each loose key!
291291
// This is done to prevent slowing down the average case.
292292
function setHasLoosePrim(a, b, val) {
293293
const altValues = findLooseMatchingPrimitives(val);
@@ -381,9 +381,9 @@ function findLooseMatchingPrimitives(prim) {
381381
}
382382

383383
// This is a ugly but relatively fast way to determine if a loose equal entry
384-
// val1ly has a correspondent matching entry. Otherwise checking for such
384+
// currently has a correspondent matching entry. Otherwise checking for such
385385
// values would be way more expensive (O(n^2)).
386-
// Note: we val1ly run this multiple times for each loose key!
386+
// Note: we currently run this multiple times for each loose key!
387387
// This is done to prevent slowing down the average case.
388388
function mapHasLoosePrim(a, b, key1, memo, item1, item2) {
389389
const altKeys = findLooseMatchingPrimitives(key1);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.