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
I think the same could be said of all the instances of pFromJSVal apart from the Maybe instance. When we use pFromJSVal we have to make sure the JSVal is valid and of the correct type. If it might be null we can use something like:
I see. So the pFromJSVal is an 'unsafe' interface like unsafeCoerce. Maybe the comments could be updated to that effect?
hamishmack
changed the title
JSString should not be a instance of PFromJSVal
Document how to deal with null and undefined when using pFromJSVal
Jul 7, 2017
AFAIK JSString should never contain null or undefined.
However, it is an instance of PFromJSVal, which means the following compilable code will crash
The text was updated successfully, but these errors were encountered: