Why `super()` Can Receive `resolve` and `reject` in a Promise Subclass
Anyone extending Promise with custom behavior needs to know that the parent constructor executes the wrapped executor synchronously, before the subclass finishes assigning its own state. A progress callback that fires too early gets dropped without an error, so the subclass can look correct while losing notifications.
Subclassing Promise in JavaScript works by handing the parent constructor a wrapper function. In a `NotifiablePromise` subclass, that wrapper is passed to `super()` as the executor; the `Promise` constructor creates `resolve` and `reject`, then synchronously calls the wrapper with both. The wrapper forwards them into the original executor and adds a third `notify` argument for progress reporting.
Because `Promise` invokes its executor synchronously, any `notify()` call made during the initial execution of the original executor runs before `notifyFn` has been assigned. The notification is silently ignored. Calling `notify` inside a timer, network callback, or other asynchronous task keeps the assignment in place and avoids the dropped callback.
Promise subclassing splits initialization across the parent's synchronous executor and the subclass's post-`super` code, which makes ordering bugs easy to introduce.
Losing an early notification silently rather than throwing makes this failure mode hard to detect outside a test that exercises a synchronous `notify` call.