Files
bun.sh/src
Claude Bot 4964bb665b Fix ResolveMessage empty message property by explicitly setting it after object creation
The issue was that JavaScript's Error constructor was overriding the message
property with an empty string after the ResolveMessage object was created.
This happened because ResolveMessage inherits from Error (inheritsFromError: true)
and the Error constructor sets message = '' by default.

The fix explicitly sets the message property on the JavaScript object after
creation using the formatted error text from msg.data.text, ensuring that
the proper error messages are displayed in tests.

Fixes test failures in:
- test/js/node/missing-module.test.js
- test/js/bun/resolve/resolve-error.test.ts
- test/js/node/module/node-module-module.test.js
- test/js/node/module/require-extensions.test.ts
- test/bundler/bundler_plugin.test.ts
2025-08-30 12:27:44 +00:00
..
2025-08-27 06:39:11 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-29 19:35:46 -07:00
2025-08-23 06:57:00 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-27 06:39:11 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00