Skip to content

test runner breaks with ERR_TAP_LEXER_ERROR for emoji #50646

Closed as not planned
Closed as not planned

Description

@0618

Version

v19.9.0

Platform

Darwin 6c7e67b8cf3e 22.6.0 Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:28 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T6020 arm64

Subsystem

No response

What steps will reproduce the bug?

add a console.log('⭐️') in the test file, then run the test.

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

every time when add an emoji.

Remove the emoji, the error is gone.

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

Emoji should be logged as other ASCII characters.

What do you see instead?

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

Additional information

No response

Activity

  1. added
    testIssues and PRs related to Node.js core tests and test infrastructure.
    test_runnerIssues and PRs related to the test runner subsystem.
    and removed
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Nov 10, 2023
  2. bnoordhuis commented on Nov 10, 2023

    @bnoordhuis
    Member

    I believe this has already been fixed by commit 7116bc0. Node 19 is out of support so I'm going to close this. v20 contains the fix.

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

    test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions