main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
606 bytes
|
Line | |
---|
1 | var a = require.resolve('buffer/').replace(process.cwd(), '$CWD');
|
---|
2 | var b = require('resolve').sync('buffer/', { preserveSymlinks: true }).replace(process.cwd(), '$CWD');
|
---|
3 | var c = require('resolve').sync('buffer/', { preserveSymlinks: false }).replace(process.cwd(), '$CWD');
|
---|
4 |
|
---|
5 | console.log(a, ': require.resolve, preserveSymlinks ' + (process.execArgv.indexOf('preserve-symlinks') > -1 ? 'true' : 'false'));
|
---|
6 | console.log(b, ': preserveSymlinks true');
|
---|
7 | console.log(c, ': preserveSymlinks false');
|
---|
8 |
|
---|
9 | if (a !== b && a !== c) {
|
---|
10 | throw 'sync: no match';
|
---|
11 | }
|
---|
12 | console.log('sync: success! a matched either b or c\n');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.