diff --git a/lib/internal/process/execution.js b/lib/internal/process/execution.js index 314b8b0a03c161..23451de2b728e8 100644 --- a/lib/internal/process/execution.js +++ b/lib/internal/process/execution.js @@ -1,5 +1,9 @@ 'use strict'; +const { + FunctionPrototype, +} = primordials; + const path = require('path'); const { @@ -121,7 +125,7 @@ function hasUncaughtExceptionCaptureCallback() { return exceptionHandlerState.captureFn !== null; } -function noop() {} +const noop = FunctionPrototype; // XXX(joyeecheung): for some reason this cannot be defined at the top-level // and exported to be written to process._fatalException, it has to be