fix for test

I was running npm test with node 7 and didn't get any errors,
updated to node 9 and now I get the errors. So here's the fix.
This commit is contained in:
b-fuse 2018-03-30 20:03:51 -04:00
parent 71544bba1a
commit 7785f53d74

View File

@ -176,7 +176,7 @@ function convert_ast(fn) {
}
function run() {
if (program.sourceMap.content === source_map_stub) {
if (program.sourceMap && program.sourceMap.content === source_map_stub) {
program.sourceMap.content = read_file(source_map_stub.path, source_map_stub.path);
}