Bun issue (Nov 30): Bun __esModule Returns True for in Operator on ES Module Namespaces
Is it fixed? Not yet.
Ongoing since Nov 30, 00:52 UTC. First reported Nov 30, 00:52 UTC.
What happened
In Bun v1.4.5, the `in` operator incorrectly evaluates to true for `"__esModule" in ns` when `ns` is an ES module namespace object, despite the module exporting no such binding and `ns.__esModule` returning undefined.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Outage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
"__esModule" in ns is true for every ES module namespace object
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First report"__esModule" in ns is true for every ES module namespace object(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Linux 6.18.58.1-microsoft-standard-WSL2 x86_64 unknown What steps can reproduce the bug? The in operator returns true for "esModule" in ns when ns is an ES module namespace object, even though the module exports no esModule binding: ns.__esModule is undefined, and the key is not in Object.keys(ns) or Reflect.ownKeys(ns). A module namespace object's [[HasProperty]] must return true only for exported names (ECMA-262,…
by pedroisoares 0upvotes 2comments
Bun issue FAQ
What happened in the Bun issue, and why?
Ongoing since Nov 30, 00:52 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.
What is affected by the Bun issue?
Bun (versions: 1.4.5).
When did the Bun issue start and end?
It started Nov 30, 00:52 UTC and is still ongoing (5 h 26 min so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.