File tree 3 files changed +13
-0
lines changed
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):
769
769
if options .enable_static :
770
770
o ['variables' ]['node_target_type' ] = 'static_library'
771
771
772
+ o ['variables' ]['node_module_version' ] = 46
773
+
772
774
if options .linked_module :
773
775
o ['variables' ]['library_files' ] = options .linked_module
774
776
Original file line number Diff line number Diff line change 15
15
'node_enable_v8_vtunejit%' : 'false' ,
16
16
'node_target_type%' : 'executable' ,
17
17
'node_core_target_name%' : 'node' ,
18
+ 'node_module_version%' : '' ,
18
19
'library_files' : [
19
20
'src/node.js' ,
20
21
'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