Implement strongly typed cast from/to JSValue #163
Annotations
1 error
Microsoft.JavaScript.NodeApi.Test.HostedClrTests ► Test(id: "napi-dotnet/jsvalue_cast"):
test/TestBuilder.cs#L322
Failed test found in:
test/net472-node20.x-Release/runneradmin_fv-az1390-505_2024-08-04_00_33_55.trx
Error:
Assert.Fail(): D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\jsvalue_cast.js:42
assert.strictEqual(JSValueCast.valueAsAsyncIterable(asyncIterable), "ok");
^
Error: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
at Microsoft.JavaScript.NodeApi.TestCases.JSValueCast.ValueAsAsyncIterable(JSValue value)
at Microsoft.JavaScript.NodeApi.Generated.Module.Microsoft_JavaScript_NodeApi_TestCases_JSValueCast_ValueAsAsyncIterable(JSCallbackArgs __args)
at Microsoft.JavaScript.NodeApi.JSValue.InvokeCallback[TDescriptor](napi_env env, napi_callback_info callbackInfo, JSValueScopeType scopeType, Func`2 getCallbackDescriptor)
at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\jsvalue_cast.js:42:32)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
Node.js v20.16.0
Node process exited with code: 1.
D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\jsvalue_cast.js:42
assert.strictEqual(JSValueCast.valueAsAsyncIterable(asyncIterable), "ok");
^
Error: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
at Microsoft.JavaScript.NodeApi.TestCases.JSValueCast.ValueAsAsyncIterable(JSValue value)
at Microsoft.JavaScript.NodeApi.Generated.Module.Microsoft_JavaScript_NodeApi_TestCases_JSValueCast_ValueAsAsyncIterable(JSCallbackArgs __args)
at Microsoft.JavaScript.NodeApi.JSValue.InvokeCallback[TDescriptor](napi_env env, napi_callback_info callbackInfo, JSValueScopeType scopeType, Func`2 getCallbackDescriptor)
at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\jsvalue_cast.js:42:32)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
Node.js v20.16.0
Full output: D:\a\node-api-dotnet\node-api-dotnet\out\obj\Release\TestCases\napi-dotnet\net472\hosted-jsvalue_cast.log
|