From 12998399f8bb3965a6e54d32cb4ae6e94bb4d653 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 23 Jan 2015 12:45:15 -0800 Subject: [PATCH] Do not warn about deprecated APIs Some APIs deprecated by iojs is still in use. --- atom/common/api/atom_bindings.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atom/common/api/atom_bindings.cc b/atom/common/api/atom_bindings.cc index ed33dab60554..4c827e0429f9 100644 --- a/atom/common/api/atom_bindings.cc +++ b/atom/common/api/atom_bindings.cc @@ -58,6 +58,9 @@ void AtomBindings::BindTo(v8::Isolate* isolate, dict.SetMethod("activateUvLoop", base::Bind(&AtomBindings::ActivateUVLoop, base::Unretained(this))); + // Do not warn about deprecated APIs. + dict.Set("noDeprecation", true); + mate::Dictionary versions; if (dict.Get("versions", &versions)) { versions.Set("atom-shell", ATOM_VERSION_STRING);