Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Perhaps a compiler issue?
Key details
Description
It appears that we very occasionally get generated javascript that is invalid. Invalid here means it will compile and run, but during runtime it will throw an error because of missing variable names / null or undefined.
It's really hard / impossible to reliably recreate, and as mentioned only seems to happen once out of every few hundred builds.
The code in question:
(Yes, this is terrible code but it works 99% of the time.)
The erring output looks like this:
A recompile fixes the output and spits out this:
The issue from the first compilation results in a runtime error of "priorities__$1 is not defined"
We are using
Environment
Sorry, but we're not sure. We use CircleCI which is likely a linux flavor.
It appears that we very occasionally get generated javascript that is invalid. Invalid here means it will compile and run, but during runtime it will throw an error because of missing variable names / null or undefined.
It's really hard / impossible to reliably recreate, and as mentioned only seems to happen once out of every few hundred builds.
The code in question:
(Yes, this is terrible code but it works 99% of the time.)
The erring output looks like this:
A recompile fixes the output and spits out this:
The issue from the first compilation results in a runtime error of "priorities__$1 is not defined"
We are using