@@ -16,7 +16,7 @@ fs.mkdirSync(path.join(tmpDir, 'nested2'));
16
16
const entry = path . join ( tmpDir , 'nested' , 'entry.js' ) ;
17
17
const entry_link_absolute_path = path . join ( tmpDir , 'link.js' ) ;
18
18
const submodule = path . join ( tmpDir , 'nested2' , 'submodule.js' ) ;
19
- const submodule_link_absolute_path = path . join ( tmpDir , 'submodule_link.js' )
19
+ const submodule_link_absolute_path = path . join ( tmpDir , 'submodule_link.js' ) ;
20
20
21
21
fs . writeFileSync ( entry , `
22
22
const assert = require('assert');
@@ -40,7 +40,10 @@ function doTest(flags, done) {
40
40
// the symlink, and not relative to the symlink target; the file structure set
41
41
// up above requires this to not crash when loading ./submodule_link.js
42
42
spawn ( process . execPath ,
43
- flags . concat ( [ '--preserve-symlinks' , '--preserve-symlinks-main' , entry_link_absolute_path ] ) ,
43
+ flags . concat ( [
44
+ '--preserve-symlinks' ,
45
+ '--preserve-symlinks-main' , entry_link_absolute_path
46
+ ] ) ,
44
47
{ stdio : 'inherit' } ) . on ( 'exit' , ( code ) => {
45
48
assert . strictEqual ( code , 0 ) ;
46
49
done ( ) ;
@@ -52,4 +55,3 @@ doTest([], () => {
52
55
// now test the new loader
53
56
doTest ( [ '--experimental-modules' ] , ( ) => { } ) ;
54
57
} ) ;
55
-
0 commit comments