Object.entries failing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 05:57 PM
When I woke up my pdi from hibernation, some of my widgets I was developing had critical failures after debugging I figured out that the problem was being caused by the JavaScript Native function Object.entries(). The specific error I'm getting is:
Server JavaScript error Cannot find function entries in object function Object() { [native code for Object.Object, arity=1] }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 07:23 AM
Hi, Sean!
I faced the same problem and noticed that ServiceNow does not support Object.entries() for applications still running in ES5. In ES12, it is already supported. I had the same error and had to change the logic I implemented to solve it. Really sorry for that and hope you managed to solve it.
Best regards,
Paulo