blob: 665e1399a3f36246f608502f857cfb2f0fd851f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
'use strict';
const common = require('../common');
const assert = require('assert');
if (!common.isMainThread)
common.skip('process.abort() is not available in Workers');
// Check that our built-in methods do not have a prototype/constructor behaviour
// if they don't need to. This could be tested for any of our C++ methods.
assert.strictEqual(process.abort.prototype, undefined);
assert.throws(() => new process.abort(), TypeError);
|