gruntjs / gruntjs/grunt

grunt.log.writeflags / grunt.verbose.writeflags says functions are 'undefined'

Open
#884 1 comment 0 reactions 0 assignees View on GitHub
prolog
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I find this function pretty useful when debugging, but if you have a function in the object you are logging, it will say that the function is `undefined` this did confuse me a little, and it would be nice if it logged functions as well or at least said that it was defined as a function.

An example:

```
grunt.verbose.writeflags({
someAwesomeSetting: 'GruntEqualsNice',
doSomething: function () {
// Stuff
}
}, 'Options');
```

Outputs:

`Options: someAwesomeSetting="GruntEqualsNice", doSomething=undefined`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.