test: fix failure in test/sequential/test-heapdump.js
#41772
Merged
test/sequential/test-heapdump.js
#41772