Files
bun.sh/test/js/web
Claude Bot b3d14c9d34 Fix Response constructor crash when passed a function as init
Fixes a stack overflow crash that occurred when passing a function as
the second argument (ResponseInit) to the Response constructor.

The issue was that the constructor checked `isObject()` which returns
true for functions, and then proceeded to call `Init.init()` which
would attempt to read properties from the function. This could cause
infinite recursion in certain edge cases.

The fix adds an explicit check to reject callable objects before
processing them as ResponseInit, throwing a proper TypeError instead
of causing a stack overflow.
2025-10-22 07:56:42 +00:00
..
2025-08-27 06:39:11 -07:00
2023-09-24 03:16:51 -07:00