Skip to content

Commit 74a8769

Browse files
committed
fixup! process: add process.features.typescript
1 parent 3317be7 commit 74a8769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/bootstrap/node.js

+2
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ const { emitWarning, emitWarningSync } = require('internal/process/warning');
313313
const { getOptionValue } = require('internal/options');
314314

315315
let kTypeStrippingMode = null;
316+
// This must be a getter, as getOptionValue does not work
317+
// before bootstrapping.
316318
ObjectDefineProperty(process.features, 'typescript', {
317319
__proto__: null,
318320
get() {

0 commit comments

Comments
 (0)