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:
parent
71544bba1a
commit
7785f53d74
|
|
@ -176,7 +176,7 @@ function convert_ast(fn) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run() {
|
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);
|
program.sourceMap.content = read_file(source_map_stub.path, source_map_stub.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user