diff options
Diffstat (limited to 'test/node.js')
-rw-r--r-- | test/node.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/node.js b/test/node.js new file mode 100644 index 00000000..22bf325d --- /dev/null +++ b/test/node.js @@ -0,0 +1,6 @@ +var fs = require("fs"); + +new Function("MOZ_SourceMap", "exports", require("../tools/node").FILES.map(function(file) { + if (/exports\.js$/.test(file)) file = require.resolve("./exports"); + return fs.readFileSync(file, "utf8"); +}).join("\n\n"))(require("source-map"), exports); |