Print warnings for deprecated APIs
This commit is contained in:
parent
f0bd28ca8d
commit
91c4ed26fc
6 changed files with 55 additions and 51 deletions
|
@ -1,3 +1,5 @@
|
|||
deprecate = require 'deprecate'
|
||||
|
||||
binding = process.atomBinding 'ipc'
|
||||
v8Util = process.atomBinding 'v8_util'
|
||||
|
||||
|
@ -14,7 +16,7 @@ ipc.sendToHost = (args...) ->
|
|||
binding.send 'ipc-message-host', [args...]
|
||||
|
||||
# Deprecated.
|
||||
ipc.sendChannel = ipc.send
|
||||
ipc.sendChannelSync = ipc.sendSync
|
||||
deprecate.rename ipc, 'sendChannel', 'send'
|
||||
deprecate.rename ipc, 'sendChannelSync', 'sendSync'
|
||||
|
||||
module.exports = ipc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue