Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reinline sep
  • Loading branch information
guybedford committed Feb 4, 2020
commit cac7c603189e3242b2a39524fe88489aa670947b
4 changes: 2 additions & 2 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const {
WeakMap,
} = primordials;

const sep = process.platform === 'win32' ? '\\' : '/';
Comment thread
guybedford marked this conversation as resolved.

const messages = new Map();
const codes = {};

Expand Down Expand Up @@ -712,8 +714,6 @@ module.exports = {
fatalExceptionStackEnhancers
};

const { sep } = require('path');

// To declare an error message, use the E(sym, val, def) function above. The sym
// must be an upper case string. The val can be either a function or a string.
// The def must be an error class.
Expand Down