File tree 4 files changed +17
-15
lines changed
4 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 4
4
"tags" : [],
5
5
"loc" : {
6
6
"start" : {
7
- "line" : 5 ,
7
+ "line" : 7 ,
8
8
"column" : 0
9
9
},
10
10
"end" : {
11
- "line" : 7 ,
11
+ "line" : 9 ,
12
12
"column" : 3
13
13
}
14
14
},
15
15
"context" : {
16
16
"loc" : {
17
17
"start" : {
18
- "line" : 8 ,
18
+ "line" : 10 ,
19
19
"column" : 0
20
20
},
21
21
"end" : {
22
- "line" : 11 ,
22
+ "line" : 13 ,
23
23
"column" : 1
24
24
}
25
25
},
26
- "code" : " require('external');\n require('external2');\n require('module-not-found');\n\n /**\n * I am in `external.input.js`.\n */\n function foo() {\n 'use strict';\n return 'bar';\n }\n\n module.exports = foo;\n "
26
+ "code" : " require('external');\n require('external2');\n require('module-not-found');\n // non-js require \n require('./polyglot/blend.cpp'); \n \n /**\n * I am in `external.input.js`.\n */\n function foo() {\n 'use strict';\n return 'bar';\n }\n\n module.exports = foo;\n "
27
27
},
28
28
"errors" : [],
29
29
"name" : " foo" ,
Original file line number Diff line number Diff line change 1
1
require ( 'external' ) ;
2
2
require ( 'external2' ) ;
3
3
require ( 'module-not-found' ) ;
4
+ // non-js require
5
+ require ( './polyglot/blend.cpp' ) ;
4
6
5
7
/**
6
8
* I am in `external.input.js`.
Original file line number Diff line number Diff line change 4
4
"tags" : [],
5
5
"loc" : {
6
6
"start" : {
7
- "line" : 5 ,
7
+ "line" : 7 ,
8
8
"column" : 0
9
9
},
10
10
"end" : {
11
- "line" : 7 ,
11
+ "line" : 9 ,
12
12
"column" : 3
13
13
}
14
14
},
15
15
"context" : {
16
16
"loc" : {
17
17
"start" : {
18
- "line" : 8 ,
18
+ "line" : 10 ,
19
19
"column" : 0
20
20
},
21
21
"end" : {
22
- "line" : 11 ,
22
+ "line" : 13 ,
23
23
"column" : 1
24
24
}
25
25
},
26
- "code" : " require('external');\n require('external2');\n require('module-not-found');\n\n /**\n * I am in `external.input.js`.\n */\n function foo() {\n 'use strict';\n return 'bar';\n }\n\n module.exports = foo;\n "
26
+ "code" : " require('external');\n require('external2');\n require('module-not-found');\n // non-js require \n require('./polyglot/blend.cpp'); \n \n /**\n * I am in `external.input.js`.\n */\n function foo() {\n 'use strict';\n return 'bar';\n }\n\n module.exports = foo;\n "
27
27
},
28
28
"errors" : [],
29
29
"name" : " foo" ,
Original file line number Diff line number Diff line change 4
4
"tags" : [],
5
5
"loc" : {
6
6
"start" : {
7
- "line" : 5 ,
7
+ "line" : 7 ,
8
8
"column" : 0
9
9
},
10
10
"end" : {
11
- "line" : 7 ,
11
+ "line" : 9 ,
12
12
"column" : 3
13
13
}
14
14
},
15
15
"context" : {
16
16
"loc" : {
17
17
"start" : {
18
- "line" : 8 ,
18
+ "line" : 10 ,
19
19
"column" : 0
20
20
},
21
21
"end" : {
22
- "line" : 11 ,
22
+ "line" : 13 ,
23
23
"column" : 1
24
24
}
25
25
},
26
- "code" : " require('external');\n require('external2');\n require('module-not-found');\n\n /**\n * I am in `external.input.js`.\n */\n function foo() {\n 'use strict';\n return 'bar';\n }\n\n module.exports = foo;\n "
26
+ "code" : " require('external');\n require('external2');\n require('module-not-found');\n // non-js require \n require('./polyglot/blend.cpp'); \n \n /**\n * I am in `external.input.js`.\n */\n function foo() {\n 'use strict';\n return 'bar';\n }\n\n module.exports = foo;\n "
27
27
},
28
28
"errors" : [],
29
29
"name" : " foo" ,
You can’t perform that action at this time.
0 commit comments