Closed moriyalb closed 1 week ago
I'm not sure what's going on there. Is it possible it's using an older version of the assembly at runtime than the one used to build? The JSValue.Is<>()
method was added fairly recently so a slightly older version wouldn't have it.
Closing because I can't reproduce this. Try doing a clean build, and check the version of the Microsoft.JavaScript.NodeApi
assembly in your output directory.
//JSValue.cs public bool Is<T>() where T : struct, IJSValue<T> { return T.CanCreateFrom(this); }
//MyCode //JSValue _in; if (!_in.Is<JSMap>()) { Jex.Error("implicit map value failed. invalid value "); return _out; }
Compile is success. But while running, got this error: