docs(java): fix syntax error in Java example of JSHandle.getProperties (#21901)

This commit is contained in:
Faisal Salman 2023-03-23 22:19:17 +07:00 committed by GitHub
parent 3477c89f20
commit 086dec364b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ await handle.dispose();
```
```java
JSHandle handle = page.evaluateHandle("() => ({window, document}"););
JSHandle handle = page.evaluateHandle("() => ({window, document})");
Map<String, JSHandle> properties = handle.getProperties();
JSHandle windowHandle = properties.get("window");
JSHandle documentHandle = properties.get("document");