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 @@ -594,6 +594,8 @@ def configure_node(o):
594594 if options .v8_options :
595595 o ['variables' ]['node_v8_options' ] = options .v8_options .replace ('"' , '\\ "' )
596596
597+ o ['variables' ]['node_module_version' ] = 14
598+
597599
598600def configure_libz (o ):
599601 o ['variables' ]['node_shared_zlib' ] = b (options .shared_zlib )
Original file line number Diff line number Diff line change 1414 'node_shared_openssl%' : 'false' ,
1515 'node_use_mdb%' : 'false' ,
1616 'node_v8_options%' : '' ,
17+ 'node_module_version%' : '' ,
1718 'library_files' : [
1819 'src/node.js' ,
1920 'lib/_debugger.js' ,
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+ require ( '../common' ) ;
3+ var 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 , 14 ) ;
You can’t perform that action at this time.
0 commit comments