-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
but, the 1st line of variables that contain their line break and indent not stripped at 1st line, it takes the 8 spaces indent from the code. (sorry if the description not very descriptive or hard to understand)
the result is like this:
console.log(JSON.stringify(meta, null, 2)) :
{
"code": "ERR_INVALID_ARG_TYPE"
}console.log(stack) :
TypeError [ERR_INVALID_ARG_TYPE]: Error msg
at stackTrace (internal/validators.js:122:11)
...etcbut this is the result of the stripIndent of them:
Variable that contain "\n " would not strip for their 1st line below this.
{
"code": "ERR_INVALID_ARG_TYPE"
}
TypeError [ERR_INVALID_ARG_TYPE]: Error msg
at validateString (internal/validators.js:122:11)
...etcnotice the difference. Their 1st line not stripped. They take 8 spaces, same as the code.
Metadata
Metadata
Assignees
Labels
No labels
