Skip to content

Crash in module_wrap.cc with malformed loader #33441

@targos

Description

@targos

loader.mjs:

export function transformSource() {
  return {
    source: {
      boom: true,
    },
  };
}

test.mjs:

import fs from 'fs';
> node --loader ./loader.mjs test.mjs
C:\Program Files\PowerShell\7\pwsh.exe[28872]: c:\ws\src\module_wrap.cc:131: Assertion `args[2]->IsString()' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.esmIssues and PRs related to the ECMAScript Modules implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions