[Flight] Define Flight chunk `.then` with `Object.defineProperty` (#37109)
[Secure Ecmascript](https://github.com/tc39/proposal-ses) would freeze the prototype of intrinsics. Since `ReactPromise` inherits the prototype from `Promise`, it also copies over the writable definition. Using `defineProperty` on an inherited property is compatible with SES though. That's also closer to how classes are specced in JS. --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
S
Sebastian "Sebbie" Silbermann committed
9ceb1e7d9e20bd0302cf6ab31b038c5ec673178d
Parent: 756fdd4
Committed by GitHub <noreply@github.com>
on 7/27/2026, 7:30:19 PM