microsoft / node-api-dotnet

Advanced interoperability between .NET and JavaScript in the same process.
MIT License
495 stars 53 forks source link

Fix build errors due to indexers #273

Closed jasongin closed 5 months ago

jasongin commented 5 months ago

Fixes: #270 Fixes: #271

JavaScript doesn't support C# style indexers. (Technically it could with proxies, but I don't think we want to make every .NET object a proxy.) We could do something else like generate get/set methods for the indexer, but that would be more work. For now it's a good improvement that at least indexers won't break the build.