doc: fix code example in inspector.md
PR-URL: https://github.com/nodejs/node/pull/13182 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
e6395cc07a
commit
329b6e908c
@ -85,8 +85,8 @@ a response is received. `callback` is a function that accepts two optional
|
||||
arguments - error and message-specific result.
|
||||
|
||||
```js
|
||||
session.post('Runtime.evaluate', {'expression': '2 + 2'},
|
||||
(error, {result}) => console.log(result.value));
|
||||
session.post('Runtime.evaluate', { expression: '2 + 2' },
|
||||
(error, { result }) => console.log(result));
|
||||
// Output: { type: 'number', value: 4, description: '4' }
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user