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