Bun Transpiler and Minifier Rewrites Computed Symbol Keys to Throw TypeError
Is it fixed? Not yet.
Ongoing since Nov 18, 07:04 UTC. First reported Nov 18, 07:04 UTC.
What happened
Bun's transpiler and minifier incorrectly rewrite computed Symbol keys in unused object literals to key + "", which results in a TypeError when evaluated. The issue affects developers using Bun version 1.4.4+38afee6c8 and 1.4.5-canary.1+67d1f55fb under bun run or --minify.
What caused it?
When simplifying an object literal whose value is unused, the transpiler/minifier rewrites each computed property key [key] to key + "", which throws a TypeError when key evaluates to a Symbol.
Source: github.com
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
Transpiler and minifier rewrite computed `Symbol` keys in unused object literals to `key + ""`, throwing `TypeError`
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportTranspiler and minifier rewrite computed `Symbol` keys in unused object literals to `key + ""`, throwing `TypeError`(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4+38afee6c8 (also reproduced on 1.4.5-canary.1+67d1f55fb) What platform is your computer? Linux 6.1.0-54-cloud-amd64 x86_64 unknown What steps can reproduce the bug? When Bun simplifies an object literal whose value is unused (for example in an expression statement, an unused / @PURE / call argument, or a known-truthy if condition under bun run or --minify), it rewrites each computed property key [key] to key + "". When key evaluates to a Symbol, key + ""…
by trackoor 0upvotes 2comments
FAQ
What happened in the Bun issue?
Bun's transpiler and minifier incorrectly rewrite computed Symbol keys in unused object literals to key + "", which results in a TypeError when evaluated. The issue affects developers using Bun version 1.4.4+38afee6c8 and 1.4.5-canary.1+67d1f55fb under bun run or --minify.
What is affected by the Bun issue?
Bun (versions: 1.4.4+38afee6c8, 1.4.5-canary.1+67d1f55fb).
When did the Bun issue start and end?
It started Nov 18, 07:04 UTC and is still ongoing (21 h 39 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.