wv2winrt: null as string function parameter value becomes string "null"
Description
Consider WebView2 sample app's AddHostObject example - https://github.com/MicrosoftEdge/WebView2Samples/blob/main/SampleApps/webview2_sample_uwp/Pages/AddHostObject.xaml.cs
I updated the code in add_host_object.html to change AddToList function as follows
function AddToList(button) {
let text = button.innerHTML;
bridgeInstance.async().appendToItems(null);
}
But the value that I received in Bridge class AppendToItems is "null" i.e. string containing letters n u l l instead of null
Version SDK: e.g. 1.0.1518.46 Framework: UWP OS: Win11
Repro Steps
- Add a break point in the
Bridge.AppendToItemsfunction at the start - Run the sample app in debug mode
- Go to AddHostObject example
- Click on Lion
The expected value of item = null
Actual value of item - "null"
Screenshots

Additional context
Note that if I use a int? instead of string it is able to recognize it as null as expected
Thanks for the easy steps to reproduce the bug via the sample app! This is a good bug, thanks for reporting. I've opened an issue and we will look into this. Thanks.