We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What happened: The script return '/n' causes an invalid syntax error in Execute Script Sync.
return '/n'
Execute Script Sync
What you expected to happen: For the endpoint to return \n
\n
How to reproduce it (as minimally and precisely as possible): Send { script: "return '\n'", args: [] } as the request body to the endpoint.
{ script: "return '\n'", args: [] }
Anything else we need to know?: dom.window.eval("return '\n'") also causes this error in plain Jsdom.
dom.window.eval("return '\n'")
The text was updated successfully, but these errors were encountered:
Merge pull request #132 from /issues/107-newline-error
6a77936
fix: correct returning newlines in execute script sync
Successfully merging a pull request may close this issue.
What happened:
The script
return '/n'
causes an invalid syntax error inExecute Script Sync
.What you expected to happen:
For the endpoint to return
\n
How to reproduce it (as minimally and precisely as possible):
Send
{ script: "return '\n'", args: [] }
as the request body to the endpoint.Anything else we need to know?:
dom.window.eval("return '\n'")
also causes this error in plain Jsdom.The text was updated successfully, but these errors were encountered: