JS strict mode

sayali_dongare
ServiceNow Employee
ServiceNow Employee

Can we enable JS strict mode for server and client scripts globally? We do this in workflows by default. (See screenshot).  Is there any property for scripts?

3 REPLIES 3

Yousaf
Giga Sage

HI Sayali,

Not sure but can you please check these 2 properties.
1. glide.client.script.enforce_strict_mode

2. glide.security.strict_mode.server

 

Mark Correct and Helpful if it helps.


***Mark Correct or Helpful if it helps.***

I don't see these properties in sys_properties or in the code-base. Can you please share where did you find these?

Yousaf
Giga Sage

Could not find the latest information in docs. Probably these were in older versions.
Maybe you can configure these in your system and try.


***Mark Correct or Helpful if it helps.***