Merge pull request #11308 from Snuffleupagus/abortOperatorList-assert
Prevent browser exceptions from incorrectly triggering the `assert` in `PDFPageProxy._abortOperatorList` (PR 11069 follow-up)
This commit is contained in:
commit
668650d564
@ -1378,7 +1378,8 @@ class PDFPageProxy {
|
||||
* @private
|
||||
*/
|
||||
_abortOperatorList({ intentState, reason, force = false, }) {
|
||||
assert(reason instanceof Error,
|
||||
assert(reason instanceof Error ||
|
||||
(typeof reason === 'object' && reason !== null),
|
||||
'PDFPageProxy._abortOperatorList: Expected "reason" argument.');
|
||||
|
||||
if (!intentState.streamReader) {
|
||||
|
Loading…
Reference in New Issue
Block a user