Context
The sequential Bun corpus frontier is js/third_party/body-parser/express-body-parser-test.test.ts at position 3954/4708, following completed Astro work in #213. This contributes to #66.
Current gap
The copied test is classified as unsupported module syntax because express and body-parser are not yet represented. It also exercises iconv-lite, HTTP server integration, request/response close events, URL query parsing, JSON middleware, and a raw net GET carrying a JSON body.
Acceptance criteria
- express default/named imports and body-parser json import prepare and resolve.
- iconv-lite encode/decode and encodingExists satisfy the copied Win-1251/ASCII checks.
- Express JSON middleware populates request.body and query parameters correctly.
- POST response status/body and request/response close event cardinality match.
- app.listen integrates with raw net requests, including a GET body and correct Content-Length response.
- Server close lifecycle is deterministic and leak-free.
- The copied test passes and is pinned in the permanent third-party gate.