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 9b730ad

Browse filesBrowse files
PW486targos
authored andcommitted
lib: use strict equality comparison
Change '==' to '===' in v8_prof_polyfill.js, punycode.js. PR-URL: #30898 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 17fc4b0 commit 9b730ad
Copy full SHA for 9b730ad

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

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

‎lib/internal/v8_prof_polyfill.js‎

Copy file name to clipboardExpand all lines: lib/internal/v8_prof_polyfill.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const os = {
4141
// Filter out vdso and vsyscall entries.
4242
const arg = args[args.length - 1];
4343
if (arg === '[vdso]' ||
44-
arg == '[vsyscall]' ||
44+
arg === '[vsyscall]' ||
4545
/^[0-9a-f]+-[0-9a-f]+$/.test(arg)) {
4646
return '';
4747
}
Collapse file

‎lib/punycode.js‎

Copy file name to clipboardExpand all lines: lib/punycode.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ const encode = function(input) {
342342
if (currentValue < n && ++delta > maxInt) {
343343
error('overflow');
344344
}
345-
if (currentValue == n) {
345+
if (currentValue === n) {
346346
// Represent delta as a generalized variable-length integer.
347347
let q = delta;
348348
for (let k = base; /* no condition */; k += base) {
@@ -359,7 +359,7 @@ const encode = function(input) {
359359
}
360360

361361
output.push(stringFromCharCode(digitToBasic(q, 0)));
362-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
362+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
363363
delta = 0;
364364
++handledCPCount;
365365
}

0 commit comments

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