Skip to content

Failed to run v8-v7 test #934

@ahaoboy

Description

@ahaoboy

Describe the bug

run.zip

One of the regular expressions in the v8-v7 tests doesn't seem to parse correctly

  var re37 = /\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g;


Thrown:
SyntaxError: pcre_compile2("\s*([+>~\s])\s*([a-zA-Z#.*:\(?!))") failed: missing terminating ] for character class at "" in ./a.js:1
  • The bug is reproducible with the latest version of njs.
  • I minimized the code and NGINX configuration to the smallest
    possible to reproduce the issue.

To reproduce

Steps to reproduce the behavior:

  • JS script
  var re37 = /\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g;

Expected behavior

A clear and concise description of what you expected to happen.

Your environment

  • Version of njs or specific commit
 ./build/njs -v
0.9.1
  • OS: [e.g. Ubuntu 20.04]
    Ubuntu 2504

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions