Files
bun.sh/src
Claude Bot 0c00495b3c Document fundamental incompatibility: getThis()/getFunction() always return undefined
This documents a MAJOR incompatibility with Node.js that cannot be fixed without
architectural changes to Bun.

The issue:
- Bun treats ALL code as ES Modules (implicitly strict mode)
- Node.js CommonJS files are non-strict by default
- This means getThis() and getFunction() ALWAYS return undefined in Bun
- In Node.js, they return actual values in non-strict CommonJS code

This breaks 100% Node.js compatibility for the Stack Trace API. Users who need
these methods to work like Node.js cannot use Bun without major modifications.

Created CallSite-StrictMode.todo documenting:
- The fundamental architectural difference
- Why it can't be fixed easily
- Impact on users
- That 100% Node.js compatibility is impossible for these methods

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 13:03:27 +00:00
..
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 23:31:07 -07:00
2025-07-21 13:26:47 -07:00
2025-09-04 18:06:47 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 23:31:07 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 23:31:07 -07:00
2025-07-29 19:35:46 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -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-09-09 20:41:10 -07:00
2025-09-04 18:06:47 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -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-09-09 20:41:10 -07:00
2025-09-03 15:40:44 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00