chore: augment promisifyMultiArg deprecation (#17066)
This commit is contained in:
parent
7a7389ab1c
commit
d9c7735a04
3 changed files with 6 additions and 3 deletions
|
@ -5,6 +5,9 @@ const contentTracing = process.atomBinding('content_tracing')
|
|||
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
|
||||
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording)
|
||||
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording)
|
||||
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(contentTracing.getTraceBufferUsage)
|
||||
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(
|
||||
contentTracing.getTraceBufferUsage,
|
||||
(value) => [value.paths, value.bookmarks]
|
||||
)
|
||||
|
||||
module.exports = contentTracing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue