Skip to content

[Bug]: top await result is different from nodejs #1453

@lake2

Description

@lake2

Version

System:
    OS: macOS 26.1
    CPU: (12) arm64 Apple M3 Pro
    Memory: 85.88 MB / 18.00 GB
    Shell: 3.2.57 - /bin/bash
  Browsers:
    Chrome: 144.0.7559.60
    Chrome Canary: 146.0.7651.0
    Safari: 26.1

Details

see the Reproduce link.

Reproduce link

https://github.com/lake2/rslib-issue

Reproduce Steps

  1. pnpm run build
  2. node dist/x/c.js output:
[Module: null prototype] {  }
  1. node src/y/c.mjs output:
[Module: null prototype] { b: { a: 1 } }

x/c.js and y/c.mjs are same code, but output different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RspackRspack related issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions