11cb0ef41Sopenharmony_ci// Flags: --v8-pool-size=0 --expose-gc
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ci'use strict';
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_cirequire('../common');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci// This verifies that V8 tasks scheduled by GC are handled on worker threads if
81cb0ef41Sopenharmony_ci// `--v8-pool-size=0` is given. The worker threads are managed by Node.js'
91cb0ef41Sopenharmony_ci// `v8::Platform` implementation.
101cb0ef41Sopenharmony_ciglobalThis.gc();
11