From 7785f53d74b420685bf80883d13ec084129f2bfd Mon Sep 17 00:00:00 2001 From: b-fuse Date: Fri, 30 Mar 2018 20:03:51 -0400 Subject: [PATCH] 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. --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/uglifyjs b/bin/uglifyjs index f49b96b0..f4f299d3 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -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); }