Skip to content

EarleyBoyer: RangeError: Maximum call stack size exceeded #939

Open
@ahaoboy

Description

@ahaoboy

Describe the bug

v8-v7 EarleyBoyer test run fails

run.zip

To reproduce

  • JS script
function f(n) {
  console.log(n)
  f(n + 1)
}

f(0)

Expected behavior

njs sets a stack size of 64kb by default, which seems to be the smallest

For the above test code, the maximum stack of other engines:

mujs 1020
qjs 598
njs 229

Your environment

  • Version of njs or specific commit: master
  • OS: [e.g. Ubuntu 24.04]

Additional context

Although it is possible to set a larger stack size through the command line, for modern complex applications, is it possible to set a larger default stack size for ease of use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions