Skip to content

Commit

Permalink
Set to undefined, not null.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines committed Apr 5, 2018
1 parent 915afb1 commit 41dcfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viz/viz.worker
Expand Up @@ -87,7 +87,7 @@ onmessage = function(event) {
var result = render(src, format, engine);
postMessage({ id: id, result: result });
} catch (error) {
graphviz = null;
graphviz = undefined;
postMessage({ id: id, error: { message: error.message, fileName: error.fileName, lineNumber: error.lineNumber } });
}
}

0 comments on commit 41dcfa8

Please sign in to comment.