trace_events: fix trace events JS API not writing traces
Fixes #24944 (closed)
I believe Inspector-based tracing probably faces the same issue, but I wasn't yet able to verify it because of a possibly unrelated V8 issue. So this PR only fixes the JS API. (edit: it seems that this does not affect inspector as it uses its own trace writer)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines