mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 21:46:48 +00:00

Fixes: https://github.com/nodejs/node/issues/35559 PR-URL: https://github.com/nodejs/node/pull/35612 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
10 lines
328 B
JavaScript
10 lines
328 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const v8 = require('v8');
|
|
|
|
// Regression test for https://github.com/nodejs/node/issues/35559
|
|
// It is important that the return value of the first call is not used, i.e.
|
|
// that the first snapshot is GC-able while the second one is being created.
|
|
v8.getHeapSnapshot();
|
|
v8.getHeapSnapshot();
|