Skip to content

Commit 27d7f9e

Browse files
authored
fix: Update type generator to use new syntax of load (microsoft#145)
1 parent dd1bcef commit 27d7f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node-api-dotnet/generator/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const dotnet = require('node-api-dotnet');
1111
// The generator depends on these assemblies; for now they have to be loaded explicitly.
1212
dotnet.load(path.join(assemblyDir, 'System.Reflection.MetadataLoadContext.dll'));
1313
dotnet.load(path.join(assemblyDir, 'Microsoft.CodeAnalysis.dll'));
14-
15-
const Generator = dotnet.load(path.join(assemblyDir, 'Microsoft.JavaScript.NodeApi.Generator.dll'));
14+
dotnet.load(path.join(assemblyDir, 'Microsoft.JavaScript.NodeApi.Generator.dll'));
15+
const Generator = dotnet.Microsoft.JavaScript.NodeApi.Generator;
1616

1717
const args = process.argv.slice(2);
1818
Generator.Program.Main(args);

0 commit comments

Comments
 (0)