We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8529a7 commit 775af7aCopy full SHA for 775af7a
test/parallel/test-v8-getheapsnapshot-twice.js
@@ -0,0 +1,9 @@
1
+'use strict';
2
+require('../common');
3
+const v8 = require('v8');
4
+
5
+// Regression test for https://github.com/nodejs/node/issues/35559
6
+// It is important that the return value of the first call is not used, i.e.
7
+// that the first snapshot is GC-able while the second one is being created.
8
+v8.getHeapSnapshot();
9
0 commit comments