chore: rename atomBinding to electronBinding (#17419)

This commit is contained in:
Shelley Vohr 2019-03-18 12:37:06 -07:00 committed by GitHub
parent 5025c991ee
commit 38d75010c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 167 additions and 164 deletions

View file

@ -1,6 +1,6 @@
'use strict'
const features = process.atomBinding('features')
const features = process.electronBinding('features')
const { EventEmitter } = require('events')
const electron = require('electron')
const path = require('path')
@ -95,7 +95,7 @@ const defaultPrintingSetting = {
}
// JavaScript implementations of WebContents.
const binding = process.atomBinding('web_contents')
const binding = process.electronBinding('web_contents')
const { WebContents } = binding
Object.setPrototypeOf(NavigationController.prototype, EventEmitter.prototype)
@ -467,7 +467,7 @@ WebContents.prototype._init = function () {
}
// JavaScript wrapper of Debugger.
const { Debugger } = process.atomBinding('debugger')
const { Debugger } = process.electronBinding('debugger')
Debugger.prototype.sendCommand = deprecate.promisify(Debugger.prototype.sendCommand)