Closed yangol-oleksiy closed 1 year ago
js.global.console:log(type(null))
null
is not a keyword in lua, you're just looking for a global variable called null
, which happens to be nil
at the time.
Likely you want js.null
https://github.com/fengari-lua/fengari-interop#null
I have sample code and very strange (wrong ?) results it outputs
output is
So, why I set
out.onclick
tonil
and its value isnull
but its type isuserdata
?Reproduced on Google Chrome 99.0.4844.84