Breaking change "make the eval consistent with function definition" #606
forgedhallpass
started this conversation in
General
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the
formatToJSFunc()
function, thedetectJSFunction
condition branch was deleted. This assumes that all the JS code passed in is wrapped in a function. We are usingrod
for headless template execution, and I wonder if this change was intentional, because it breaks some of our templates.e.g. https://github.com/projectdiscovery/nuclei-templates/blob/f88b297d1db9e75e6f88bfb8cd12e81bc96d3638/headless/extract-urls.yaml
Related commit: edc1d6d
Current code: https://github.com/go-rod/rod/blame/0bb4269931964dbe05906aadf685d01cd5fcd979/page_eval.go#L113
Beta Was this translation helpful? Give feedback.
All reactions