From 15fd56be3d45304e3fd8d92d51f7fa31a1b5d84a Mon Sep 17 00:00:00 2001 From: Matt Loring Date: Sat, 7 May 2016 13:23:43 +0200 Subject: [PATCH] Enable V8 deprecation warnings for native modules It will be helpful for native module developers to be aware of any deprecated apis they are using so that they can update before their modules break completely. Module developers can override this option in their binding.gyp if they do not want to see these warnings. PR-URL: https://github.com/nodejs/node-gyp/pull/920 Reviewed-By: Ben Noordhuis --- addon.gypi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon.gypi b/addon.gypi index 552e4748d3..62e8bc67c7 100644 --- a/addon.gypi +++ b/addon.gypi @@ -11,7 +11,9 @@ '<(node_root_dir)/deps/v8/include' ], 'defines': [ - 'NODE_GYP_MODULE_NAME=>(_target_name)' + 'NODE_GYP_MODULE_NAME=>(_target_name)', + # Warn when using deprecated V8 APIs. + 'V8_DEPRECATION_WARNINGS=1' ], 'target_conditions': [