mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
14 lines
483 B
JavaScript
14 lines
483 B
JavaScript
// Skip this test if Node is not compiled with isolates support.
|
|
if (!process.features.isolates) return;
|
|
|
|
var assert = require('assert');
|
|
|
|
// This is the same test as test-child-process-fork3 except it uses isolates
|
|
// instead of processes. process.TEST_ISOLATE is a ghetto method of passing
|
|
// some information into the other test.
|
|
process.TEST_ISOLATE = true;
|
|
require('./test-child-process-fork3');
|
|
|
|
var numThreads = process.binding('isolates').count();
|
|
assert.ok(numThreads > 1);
|