chore: remove promisification deprecation callbacks (#17907)
* chore: remove promisification deprecation callbacks * update docs * fix smoke test * fix executejs issue * cleanup leftovers * fix webContents.executeJavaScript tests * cleanup WebContents.prototype.takeHeapSnapshot * fix "sets arbitrary webContents as devtools" test * fix executeJavaScriptInFrame related tests
This commit is contained in:
parent
fdf5f838f4
commit
d87b3ead76
44 changed files with 94 additions and 1418 deletions
|
@ -1,14 +1,5 @@
|
|||
'use strict'
|
||||
const { deprecate } = require('electron')
|
||||
const contentTracing = process.electronBinding('content_tracing')
|
||||
const contentTracing =
|
||||
|
||||
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
|
||||
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording)
|
||||
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording)
|
||||
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(
|
||||
contentTracing.getTraceBufferUsage
|
||||
// convertPromiseValue: Temporarily disabled until it's used
|
||||
/* (value) => [value.paths, value.bookmarks] */
|
||||
)
|
||||
|
||||
module.exports = contentTracing
|
||||
module.exports = process.electronBinding('content_tracing')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue