diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index f27652e4fffb4c..ee83a555170c3b 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -313,6 +313,8 @@ const { emitWarning, emitWarningSync } = require('internal/process/warning'); const { getOptionValue } = require('internal/options'); let kTypeStrippingMode = null; +// This must be a getter, as getOptionValue does not work +// before bootstrapping. ObjectDefineProperty(process.features, 'typescript', { __proto__: null, get() {