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
There are JavaScript functions that expect the value undefined to be passed to them, not null. gen_js_api doesn't provide (as far as I know) a way to do this, as option types get converted to null.
But I wonder if this type option_undefined could be something built in as part of gen_js_api? Or maybe, as an annotation to type option, instead of a full new built-in type.
The text was updated successfully, but these errors were encountered:
jchavarri
changed the title
Bindings to JavaScript functions that expect undefined values
Bindings to JavaScript functions that expect value undefined
Sep 21, 2019
There are JavaScript functions that expect the value
undefined
to be passed to them, notnull
. gen_js_api doesn't provide (as far as I know) a way to do this, asoption
types get converted tonull
.I added this to the bindings I am working on:
But I wonder if this type
option_undefined
could be something built in as part of gen_js_api? Or maybe, as an annotation to typeoption
, instead of a full new built-in type.The text was updated successfully, but these errors were encountered: