node-api-dotnet
Advanced tools
Comparing version 0.2.14 to 0.2.15
{ | ||
"name": "node-api-dotnet", | ||
"version": "0.2.14", | ||
"version": "0.2.15", | ||
"description": "Node-API bindings for .Net", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -131,5 +131,15 @@ # Node API for .NET: JavaScript + .NET Interop | ||
Exceptions/errors thrown in .NET or JS are propagated across the boundary with stack traces. | ||
An unhandled .NET exception is thrown back to a JS caller as an `Error` with a stack trace that | ||
includes both .NET and JS frames, and source line numbers if symbols are available. For example: | ||
``` | ||
Error: Test error thrown by JS. | ||
at Microsoft.JavaScript.NodeApi.TestCases.Errors.ThrowDotnetError(String message) in D:\node-api-dotnet\test\TestCases\Errors.cs:line 13 | ||
at Microsoft.JavaScript.NodeApi.Generated.Module.Errors_ThrowDotnetError(JSCallbackArgs __args) in napi-dotnet.NodeApi.g.cs:line 357 | ||
at Microsoft.JavaScript.NodeApi.JSNativeApi.InvokeCallback[TDescriptor](napi_env env, napi_callback_info callbackInfo, JSValueScopeType scopeType, Func`2 getCallbackDescriptor) in JSNativeApi.cs:line 1070 | ||
at catchDotnetError (D:\node-api-dotnet\test\TestCases\errors.js:14:12) | ||
at Object.<anonymous> (D:\node-api-dotnet\test\TestCases\errors.js:41:1) | ||
``` | ||
Similarly, an unhandled JS `Error` is thrown back to a .NET caller as a `JSException` with a | ||
combined stack trace. | ||
_Under development. More to be written..._ | ||
### Develop Node.js addons with C# | ||
@@ -136,0 +146,0 @@ A C# class library project can use the `[JSExport]` attribute to tag (and rename) APIs that are |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17112765
324