docs(api): document that JSHandle.jsonValue might return error/blank (#1118)

This commit is contained in:
Neeraj Singh 2017-10-21 01:33:43 -07:00 committed by Andrey Lushnikov
parent 9603bab0c7
commit c9e1a2de4e

View File

@ -1686,7 +1686,7 @@ Returns a JSON representation of the object. If the object has a
[`toJSON`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior) [`toJSON`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior)
function, it **will not be called**. function, it **will not be called**.
> **NOTE** The method will throw if the referenced object is not stringifiable. > **NOTE** The method will return an empty JSON if the referenced object is not stringifiable. It will throw an error if the object has circular references.
### class: ElementHandle ### class: ElementHandle