API Distortion Changes in Lightning Web Security

Lightning Web Security (LWS) includes new security protections with more distortions for web APIs. ESLint rules matching the distortions are also available.

Where: This change applies to Lightning Experience, LWR-based Experience Cloud sites, and Lightning web components in Aura sites when LWS is enabled.

How: These APIs have new distortions documented in the LWS Distortion Viewer (can be outdated or unavailable during release preview). Corresponding ESLint rules are in the ESLint package.

  • Promise.try
  • WebAssembly.Instance.prototype.exports getter
  • WebAssembly.instantiate
  • WebAssembly.instantiateStreaming