-
Notifications
You must be signed in to change notification settings - Fork 22
_WD_ExecuteScript: don't reformat JS code #489
New issue
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
Conversation
still need to check, but currently focusing on frames issue. |
here is my latest opinion |
Please remove all |
Also in |
because: $sData = Json_StringEncode($sData, $iOption) ; Escape JSON Strings from here: Lines 1744 to 1748 in c39d1f5
It's enough |
The other question is why we always return Line 1747 in c39d1f5
|
but maybe not? I think they are there to CleanUp the mess in sphagetthi called logs. |
To me, these are two separate issues:
This PR is intended to only deal with the 1st instance.
Right... IIRC, you wanted the inline code to be more legible so this is the way it was done. |
IDK. We are dealing with an internal function, so it may not matter. This appears to be a carry over from before we switched to using FWIW, I also noticed that the function header is missing a |
This comment was marked as duplicate.
This comment was marked as duplicate.
Please propose solution.I will check when I woke up. |
Looks fine for me |
Pull request
Proposed changes
Fixes #487
Checklist
Put an
x
in the boxes that apply. If you're unsure about any of them, don't hesitate to ask. We are here to help!This is simply a reminder of what we are going to look for before merging your code.
Types of changes
Please check
x
the type of change your PR introduces:What is the current behavior?
Stripping of tabs and spaces from JS can result in code that no longer functions properly.
What is the new behavior?
Code is processed as-is. Any reformatting that is required should be performed prior to calling _WD_ExecuteScript
Additional context
System under test