Skip to content

Crash in module_wrap.cc with malformed loader #33441

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.

Activity

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

    confirmed-bugIssues and PRs for 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