report: fix typos in report keys and bump the version · nodejs/node@01eb308
@@ -110,7 +110,7 @@ function _validateContent(report, fields = []) {
110110'glibcVersionRuntime', 'glibcVersionCompiler', 'cwd',
111111'reportVersion', 'networkInterfaces', 'threadId'];
112112checkForUnknownFields(header, headerFields);
113-assert.strictEqual(header.reportVersion, 4); // Increment as needed.
113+assert.strictEqual(header.reportVersion, 5); // Increment as needed.
114114assert.strictEqual(typeof header.event, 'string');
115115assert.strictEqual(typeof header.trigger, 'string');
116116assert(typeof header.filename === 'string' || header.filename === null);
@@ -309,11 +309,11 @@ function _validateContent(report, fields = []) {
309309310310// Verify the format of the userLimits section on non-Windows platforms.
311311if (!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'];
317317checkForUnknownFields(report.userLimits, userLimitsFields);
318318for (const [type, limits] of Object.entries(report.userLimits)) {
319319assert.strictEqual(typeof type, 'string');