Bug 452042

Summary: "evaluate() threw an exception" message is printed to the terminal
Product: [Applications] okular Reporter: Yuri <yuri>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 21.12.0   
Target Milestone: ---   
Platform: Other   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Yuri 2022-03-29 16:39:33 UTC
SUMMARY
Unconditional "evaluate() threw an exception" message is printed to the terminal when a particular document is opened.

STEPS TO REPRODUCE
1.  Download https://www.ftb.ca.gov/forms/2019/2019-540-2ez.pdf
2. Open it in Okular
3. Observe the message: evaluate() threw an exception

SOFTWARE/OS VERSIONS
FreeBSD 13
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Comment 1 Albert Astals Cid 2022-03-29 21:09:38 UTC
JavaScript in that PDF uses the "global" property we don't support yet
Comment 2 Yuri 2022-03-29 21:19:09 UTC
(In reply to Albert Astals Cid from comment #1)
> JavaScript in that PDF uses the "global" property we don't support yet

Is this because Okular supports a lower version of ECMAScript?
What version does it support?
Comment 3 Albert Astals Cid 2022-03-29 21:43:55 UTC
This is because Okular supports what it supports.