Skip to content

TAP parser fails with zero width joinerΒ #48397

Description

@TheChilliPL

Version

v18.12.0

Platform

Microsoft Windows NT 10.0.25375.0 x64

Subsystem

No response

What steps will reproduce the bug?

All you need is to run

assert.deepEqual("πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦", "");

inside a test case.

How often does it reproduce? Is there a required condition?

Seems to happen every time there's a ZWJ in the test.

What is the expected behavior? Why is that the expected behavior?

It should not crash the parser, because it doesn't make sense for it to crash the parser. ZWJ should log correctly.

What do you see instead?

Well, it crashes the parser:

  Error [ERR_TAP_LEXER_ERROR]: Unexpected character: ‍ at line 1, column 0
      at Socket.emit (node:events:511:28) {
    code: 'ERR_TAP_LEXER_ERROR'
  }

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions