Commit 8f1c776
authored
Remove return from script() example
Running "$result = $page->script('return document.title');" throws an error: "SyntaxError: Illegal return statement"
After removing the return, everything works as intended and $result is filled with the correct value.1 parent 8c3bc1e commit 8f1c776
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | | - | |
| 995 | + | |
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| |||
0 commit comments