docs: fixing JS Comments for Evaluate (#26880)

This commit is contained in:
Timothy C. Quinn 2023-09-05 16:53:16 -04:00 committed by GitHub
parent 740472ce8f
commit 2f4d1714b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,7 @@ Object result = page.evaluate("() => {\n" +
```python async
data = { 'text': 'some data', 'value': 1 }
result = await page.evaluate("""() => {
# There is no |data| in the web page.
// There is no |data| in the web page.
window.myApp.use(data)
}""")
```
@ -357,7 +357,7 @@ result = await page.evaluate("""() => {
```python sync
data = { 'text': 'some data', 'value': 1 }
result = page.evaluate("""() => {
# There is no |data| in the web page.
// There is no |data| in the web page.
window.myApp.use(data)
}""")
```