Uncaught SyntaxError in Firefox: Missing {
Before Function Body (chunk-ACB7EEIH.js)
#8368
Labels
STATE: Issue accepted
An issue has been reproduced.
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
Description:
We are encountering an issue in Firefox that does not appear in Chrome or Edge. When running our application, we receive the following error in the console:
This error is preventing the application from functioning correctly in Firefox. The issue seems to be related to TestCafe's Hammerhead processing script, as shown in the following snippet:
Steps to Reproduce:
Uncaught SyntaxError: missing { before function body
.Expected Behavior:
The application should function without syntax errors in Firefox, as it does in Chrome and Edge.
Actual Behavior:
Firefox throws a
SyntaxError
, preventing proper execution.Environment:
Additional Context:
Would appreciate any insights or fixes for this issue. Thanks!
What is the Current behavior?
Firefox throws a
SyntaxError
, preventing proper execution.What is the Expected behavior?
The application should function without syntax errors in Firefox, as it does in Chrome and Edge.
What is the public URL of the test page? (attach your complete example)
https://formspro.omnibyte.com/automation/nightly
What is your TestCafe test code?
{
"browsers": ["chrome:headless:emulation:width=1920;height=1080 --start-fullscreen;"],
"reporter": [
{
"name": "spec"
},
{
"name": "nunit3",
"output": "results/reports/report.xml"
}
],
"screenshots": {
"takeOnFails": true,
"path": "results/",
"pathPattern": "${TIME}/${TEST_INDEX}/${FILE_INDEX}.png"
},
"disablePageCaching": true,
"stopOnFirstFail": false,
"skipJsErrors": true,
"skipUncaughtErrors": true,
"selectorTimeout": 5000,
"assertionTimeout": 5000,
"pageLoadTimeout": 120000,
"speed": 1,
"cache": false
}
The text was updated successfully, but these errors were encountered: