@@ -110,7 +110,7 @@ function _validateContent(report, fields = []) {
110110 'glibcVersionRuntime' , 'glibcVersionCompiler' , 'cwd' ,
111111 'reportVersion' , 'networkInterfaces' , 'threadId' ] ;
112112 checkForUnknownFields ( header , headerFields ) ;
113- assert . strictEqual ( header . reportVersion , 4 ) ; // Increment as needed.
113+ assert . strictEqual ( header . reportVersion , 5 ) ; // Increment as needed.
114114 assert . strictEqual ( typeof header . event , 'string' ) ;
115115 assert . strictEqual ( typeof header . trigger , 'string' ) ;
116116 assert ( typeof header . filename === 'string' || header . filename === null ) ;
@@ -309,11 +309,11 @@ function _validateContent(report, fields = []) {
309309
310310 // Verify the format of the userLimits section on non-Windows platforms.
311311 if ( ! isWindows ) {
312- const userLimitsFields = [ 'core_file_size_blocks' , 'data_seg_size_kbytes ' ,
312+ const userLimitsFields = [ 'core_file_size_blocks' , 'data_seg_size_bytes ' ,
313313 'file_size_blocks' , 'max_locked_memory_bytes' ,
314- 'max_memory_size_kbytes ' , 'open_files' ,
314+ 'max_memory_size_bytes ' , 'open_files' ,
315315 'stack_size_bytes' , 'cpu_time_seconds' ,
316- 'max_user_processes' , 'virtual_memory_kbytes ' ] ;
316+ 'max_user_processes' , 'virtual_memory_bytes ' ] ;
317317 checkForUnknownFields ( report . userLimits , userLimitsFields ) ;
318318 for ( const [ type , limits ] of Object . entries ( report . userLimits ) ) {
319319 assert . strictEqual ( typeof type , 'string' ) ;
0 commit comments