test: update trace events test expectations

V8 9.2 doesn't emit the "V8.ScriptCompiler" event anymore.
Use "V8.GCScavenger" instead.

Backport-PR-URL: https://github.com/nodejs/node/pull/39470
PR-URL: https://github.com/nodejs/node/pull/38990
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Michaël Zasso 2021-04-21 17:27:03 +02:00 committed by Beth Griggs
parent b230ac12d9
commit bbcd651cfd
No known key found for this signature in database
GPG Key ID: D7062848A1AB005C
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ proc.once('exit', common.mustCall(() => {
return false;
if (trace.cat !== 'v8')
return false;
if (trace.name !== 'V8.ScriptCompiler')
if (trace.name !== 'V8.GCScavenger')
return false;
return true;
}));

View File

@ -29,7 +29,7 @@ proc.once('exit', common.mustCall(() => {
return false;
if (trace.cat !== 'v8')
return false;
if (trace.name !== 'V8.ScriptCompiler')
if (trace.name !== 'V8.GCScavenger')
return false;
return true;
}));