We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4f609f commit 19d3296Copy full SHA for 19d3296
lib/internal/bootstrap/node.js
@@ -373,8 +373,9 @@ internalBinding('process_methods').setEmitWarningSync(emitWarningSync);
373
}
374
375
{
376
- const { getBuiltinModule } = require('internal/modules/helpers');
+ const { getBuiltinModule, tsParse } = require('internal/modules/helpers');
377
process.getBuiltinModule = getBuiltinModule;
378
+ process.tsParse = tsParse;
379
380
381
function setupProcessObject() {
test/parallel/test-process-tsparse.js
@@ -0,0 +1,9 @@
1
+'use strict';
2
+
3
+const common = require('../common');
4
+const assert = require('assert');
5
6
+if (!common.isMainThread)
7
+ common.skip('process.tsParse is not available in Workers');
8
9
+assert.strictEqual(process.tsParse('let s: string'), 'let s ');
0 commit comments