indentjs/endent

RangeError: Invalid count value

eight04 opened this issue · 1 comments

endent throws with the following code:

var endent = require("endent")
const a = '"test"';
console.log(endent`
    {
        ${a}: null
    }
`);

https://runkit.com/embed/dc58pgajgtpl

The line throwing the error:

let endentation = ' '.repeat(l)