You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you assign a null value to a variable and assign that variable to a JSValue, then using that JSValue in a JavaScript context is dangerous. It would help if assigning a null value to a JSValue would set the .IsNull or .IsUndefined flag.
using System;using Awesomium.Core;namespaceSimple_Awesomnium_Test{classProgram{staticvoidMain(string[]args){Stringfoo;JSValuebar;JSObjectbin=new JSObject();foo="Works";bar=foo;
bin["value"]=bar;foo=null;bar=foo;
bin["value"]=bar;// Doesn't work// ^-- An unhandled exception of type 'System.ArgumentNullException' occurred in Awesomium.Core.dllif(bar.IsNull)return;// Doesn't helpif(bar.IsUndefined)return;// Doesn't help eitherif(((String)bar)==null)return;// Fixes the problem}}}
The text was updated successfully, but these errors were encountered:
If you assign a null value to a variable and assign that variable to a JSValue, then using that JSValue in a JavaScript context is dangerous. It would help if assigning a null value to a JSValue would set the .IsNull or .IsUndefined flag.
The text was updated successfully, but these errors were encountered: