File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -769,6 +769,8 @@ def configure_node(o):
769769 if options .enable_static :
770770 o ['variables' ]['node_target_type' ] = 'static_library'
771771
772+ o ['variables' ]['node_module_version' ] = 46
773+
772774 if options .linked_module :
773775 o ['variables' ]['library_files' ] = options .linked_module
774776
Original file line number Diff line number Diff line change 1515 'node_enable_v8_vtunejit%' : 'false' ,
1616 'node_target_type%' : 'executable' ,
1717 'node_core_target_name%' : 'node' ,
18+ 'node_module_version%' : '' ,
1819 'library_files' : [
1920 'src/node.js' ,
2021 'lib/_debug_agent.js' ,
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+ require ( '../common' ) ;
3+ const assert = require ( 'assert' ) ;
4+
5+ // Check for existence
6+ assert ( process . config . variables . hasOwnProperty ( 'node_module_version' ) ) ;
7+
8+ // Ensure that `node_module_version` is an Integer
9+ assert ( ! Number . isNaN ( parseInt ( process . config . variables . node_module_version ) ) ) ;
10+ assert . strictEqual ( process . config . variables . node_module_version , 46 ) ;
You can’t perform that action at this time.
0 commit comments