summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/process.ts')
-rw-r--r--ext/node/polyfills/process.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts
index a85351d4b..449a85c5e 100644
--- a/ext/node/polyfills/process.ts
+++ b/ext/node/polyfills/process.ts
@@ -98,6 +98,10 @@ export const exit = (code?: number | string) => {
process.reallyExit(process.exitCode || 0);
};
+export const abort = () => {
+ ops.op_process_abort();
+};
+
function addReadOnlyProcessAlias(
name: string,
option: string,
@@ -415,6 +419,9 @@ class Process extends EventEmitter {
/** https://nodejs.org/api/process.html#process_process_exit_code */
exit = exit;
+ /** https://nodejs.org/api/process.html#processabort */
+ abort = abort;
+
// Undocumented Node API that is used by `signal-exit` which in turn
// is used by `node-tap`. It was marked for removal a couple of years
// ago. See https://github.com/nodejs/node/blob/6a6b3c54022104cc110ab09044a2a0cecb8988e7/lib/internal/bootstrap/node.js#L172