docs(api): javascript -> JavaScript (#1338)
This commit is contained in:
parent
9c1935b651
commit
9b907b9ada
@ -898,7 +898,7 @@ The `format` options are:
|
||||
- `prototypeHandle` <[JSHandle]> A handle to the object prototype.
|
||||
- returns: <[Promise]<[JSHandle]>> Promise which resolves to a handle to an array of objects with this prototype.
|
||||
|
||||
The method iterates javascript heap and finds all the objects with the given prototype.
|
||||
The method iterates JavaScript heap and finds all the objects with the given prototype.
|
||||
|
||||
```js
|
||||
// Create a Map object
|
||||
@ -1666,7 +1666,7 @@ await resultHandle.dispose();
|
||||
- `prototypeHandle` <[JSHandle]> A handle to the object prototype.
|
||||
- returns: <[JSHandle]> A handle to an array of objects with this prototype
|
||||
|
||||
The method iterates javascript heap and finds all the objects with the given prototype.
|
||||
The method iterates JavaScript heap and finds all the objects with the given prototype.
|
||||
|
||||
```js
|
||||
// Create a Map object
|
||||
@ -1683,7 +1683,7 @@ await mapPrototype.dispose();
|
||||
|
||||
### class: JSHandle
|
||||
|
||||
JSHandle represents an in-page javascript object. JSHandles can be created with the [page.evaluateHandle](#pageevaluatehandlepagefunction-args) method.
|
||||
JSHandle represents an in-page JavaScript object. JSHandles can be created with the [page.evaluateHandle](#pageevaluatehandlepagefunction-args) method.
|
||||
|
||||
```js
|
||||
const windowHandle = await page.evaluateHandle(() => window);
|
||||
|
Loading…
Reference in New Issue
Block a user