Bug #92249
closedjs: BackendException is invoked incorrectly in TYPO3/CMS/Backend/FormEngine
100%
Description
The BackendException class is exported as named (not as default) [1]
export in BackendException.ts, and therefore the module consumer
needs to access the BackendException property of the module.
Once a interactionRequest is missing in the FormEngine cosume() method [2],
the following javascript errors occurs:
FormEngine.js?bust=xxxxxxxxxxxxx:386 Uncaught TypeError: BackendException is not a constructor
[1] https://github.com/TYPO3/TYPO3.CMS/blob/e1ab7023e3ae4c9b1d6674a0974037ccced3841e/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/BackendException.ts#L14
[2] https://github.com/TYPO3/TYPO3.CMS/blob/e1ab7023e3ae4c9b1d6674a0974037ccced3841e/typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js#L387
Note: I don't know how to trigger this, but by unconditially throwing the BackendException exception reveals that the current code is wrong.