Use // for single line comments
This commit is contained in:
parent
26350f4ccb
commit
f4af744519
43 changed files with 311 additions and 310 deletions
|
@ -5,28 +5,28 @@ path = require('path');
|
|||
Module = require('module');
|
||||
|
||||
|
||||
/* Clear Node's global search paths. */
|
||||
// Clear Node's global search paths.
|
||||
|
||||
Module.globalPaths.length = 0;
|
||||
|
||||
|
||||
/* Clear current and parent(init.coffee)'s search paths. */
|
||||
// Clear current and parent(init.coffee)'s search paths.
|
||||
|
||||
module.paths = [];
|
||||
|
||||
module.parent.paths = [];
|
||||
|
||||
|
||||
/* Prevent Node from adding paths outside this app to search paths. */
|
||||
// Prevent Node from adding paths outside this app to search paths.
|
||||
|
||||
Module._nodeModulePaths = function(from) {
|
||||
var dir, i, part, parts, paths, skipOutsidePaths, splitRe, tip;
|
||||
from = path.resolve(from);
|
||||
|
||||
/* If "from" is outside the app then we do nothing. */
|
||||
// If "from" is outside the app then we do nothing.
|
||||
skipOutsidePaths = from.startsWith(process.resourcesPath);
|
||||
|
||||
/* Following logoic is copied from module.js. */
|
||||
// Following logoic is copied from module.js.
|
||||
splitRe = process.platform === 'win32' ? /[\/\\]/ : /\//;
|
||||
paths = [];
|
||||
parts = from.split(splitRe);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue