| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent da1913c commit 89961ba
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -247,7 +247,10 @@ node::DebugOptions debug_options; | |||
| 247 | 247 | static struct { | |
| 248 | 248 | #if NODE_USE_V8_PLATFORM | |
| 249 | 249 | void Initialize(int thread_pool_size) { | |
| 250 | - platform_ = v8::platform::CreateDefaultPlatform(thread_pool_size); | ||
| 250 | + platform_ = v8::platform::CreateDefaultPlatform( | ||
| 251 | + thread_pool_size, | ||
| 252 | + v8::platform::IdleTaskSupport::kDisabled, | ||
| 253 | + v8::platform::InProcessStackDumping::kDisabled); | ||
| 251 | 254 | V8::InitializePlatform(platform_); | |
| 252 | 255 | tracing::TraceEventHelper::SetCurrentPlatform(platform_); | |
| 253 | 256 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,24 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + | ||
| 5 | + // This test makes sure that an aborted node process | ||
| 6 | + // exits with code 3 on Windows, and SIGABRT on POSIX. | ||
| 7 | + // Spawn a child, force an abort, and then check the | ||
| 8 | + // exit code in the parent. | ||
| 9 | + | ||
| 10 | + const spawn = require('child_process').spawn; | ||
| 11 | + if (process.argv[2] === 'child') { | ||
| 12 | + process.abort(); | ||
| 13 | + } else { | ||
| 14 | + const child = spawn(process.execPath, [__filename, 'child']); | ||
| 15 | + child.on('exit', common.mustCall((code, signal) => { | ||
| 16 | + if (common.isWindows) { | ||
| 17 | + assert.strictEqual(code, 3); | ||
| 18 | + assert.strictEqual(signal, null); | ||
| 19 | + } else { | ||
| 20 | + assert.strictEqual(code, null); | ||
| 21 | + assert.strictEqual(signal, 'SIGABRT'); | ||
| 22 | + } | ||
| 23 | + })); | ||
| 24 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments