mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
require() should handle paths as relative (like nodeJS) (#443)
* Integrate @nlowe's documentation and tests * Use filepath.Clean() instead of filepath.Abs() * Use a stackless implementation
This commit is contained in:
8
pkg/js/parse_tests/complexImports/base.js
Normal file
8
pkg/js/parse_tests/complexImports/base.js
Normal file
@@ -0,0 +1,8 @@
|
||||
require('./a/c/c.js');
|
||||
require('./b/b.js');
|
||||
|
||||
D("foo.com","none",
|
||||
A("@","1.2.3.4"),
|
||||
c(),
|
||||
b()
|
||||
);
|
Reference in New Issue
Block a user