Skip to content

Conversation

@TehShrike
Copy link

When piping bundled code into node with stdin, uvu was throwing an error here:

https://github.com/lukeed/kleur/blob/fa3454483899ddab550d08c18c028e6db1aab0e5/index.mjs#L103

      !!~this.has.indexOf(open) || (this.has.push(open), this.keys.push(blk));
                  ^

TypeError: this.has.indexOf is not a function
    at [stdin]:174:19
    at Timeout.exec [as _onTimeout] ([stdin]:1038:53)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

changing the line so that there is definitely a this seems to fix it.

When piping bundled code into node with stdin, uvu was throwing an error here:

```js
      !!~this.has.indexOf(open) || (this.has.push(open), this.keys.push(blk));
                  ^

TypeError: this.has.indexOf is not a function
    at [stdin]:174:19
    at Timeout.exec [as _onTimeout] ([stdin]:1038:53)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
```

changing the line so that there is definitely a `this` seems to fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant