Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Corrupted stack trace #31218

Copy link
Copy link
@ghost

Description

  • Version: v13.5.0
  • Platform: windows
  • Subsystem: exceptions
(a => ~{get[a](){
  a();
}}[a])('X\x00Y');

produces this stack trace:

C:\1.js:6
  a();
  ^

TypeError: a is not a function
    at Object.get X

As you can see, function name is incorrect (it displays only X but not Y) and all previous functions are missing on the stack. It is not a console issue, because if you add

process.on('uncaughtException', console.log);

before this code, it works as expected:

TypeError: a is not a function
    at Object.get X Y [as X Y] (C:\1.js:6:3)
    at C:\1.js:7:3
    at Object.<anonymous> (C:\1.js:7:7)
    at Module._compile (internal/modules/cjs/loader.js:1139:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
    at Module.load (internal/modules/cjs/loader.js:988:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 uncaughtException

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.