My Oracle Support Banner

Saving JavaScript Containing "for...of" Loop to Component Causes "Error - Failed to update Javascript file" (Doc ID 2646723.1)

Last updated on MARCH 09, 2020

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

As of the time this KM is written, saving JavaScript contains "for ... of" loop to a component may cause following error:

However, this code runs fine outside of OCC. 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
 1. Access Items by Index
 2. Use for...in loop
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.