GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tls: change var to const · nodejs/node@4ad4e37

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • tls.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/tls.js‎

Copy file name to clipboardExpand all lines: lib/internal/tls.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// Example:
44
// C=US\nST=CA\nL=SF\nO=Joyent\nOU=Node.js\nCN=ca1\[email protected]
55
function parseCertString(s) {
6-
var out = Object.create(null);
7-
var parts = s.split('\n');
6+
const out = Object.create(null);
7+
const parts = s.split('\n');
88
for (var i = 0, len = parts.length; i < len; i++) {
9-
var sepIndex = parts[i].indexOf('=');
9+
const sepIndex = parts[i].indexOf('=');
1010
if (sepIndex > 0) {
11-
var key = parts[i].slice(0, sepIndex);
12-
var value = parts[i].slice(sepIndex + 1);
11+
const key = parts[i].slice(0, sepIndex);
12+
const value = parts[i].slice(sepIndex + 1);
1313
if (key in out) {
1414
if (!Array.isArray(out[key])) {
1515
out[key] = [out[key]];

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.