Print warnings for deprecated APIs

This commit is contained in:
Cheng Zhao 2015-11-09 21:18:57 +08:00
parent f0bd28ca8d
commit 91c4ed26fc
6 changed files with 55 additions and 51 deletions

View file

@ -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