11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_cirequire('../common');
31cb0ef41Sopenharmony_ciconst v8 = require('v8');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci// Regression test for https://github.com/nodejs/node/issues/35559
61cb0ef41Sopenharmony_ci// It is important that the return value of the first call is not used, i.e.
71cb0ef41Sopenharmony_ci// that the first snapshot is GC-able while the second one is being created.
81cb0ef41Sopenharmony_civ8.getHeapSnapshot();
91cb0ef41Sopenharmony_civ8.getHeapSnapshot();
10