Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 4763260

Browse files
committed
Merge branch 'master' of github.com:google/closure-compiler-js
2 parents 18b727f + 120365b commit 4763260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ function caretPrefix(line, charNo) {
4242
* @param {function(string)} logger
4343
* @return {boolean} Whether this output should fail a compilation.
4444
*/
45-
module.exports = function(options, output, logger=console.warn) {
45+
module.exports = function(options, output, logger) {
46+
logger = logger || console.warn;
4647
// TODO(samthor): If this file has a sourceMap, then follow it back out of the rabbit hole.
4748
function fileFor(file) {
4849
if (!file) { return null; }

0 commit comments

Comments
 (0)