Object.entries failing

Sean Mauk
Tera Expert

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] }

1 REPLY 1

pveg
Tera Contributor

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