Show newer

re: no image descriptions 

@vaporeon_ @wallhackio i am showing that, in the browser, document.all exists and is an object. boolean conversion of document.all purroduces false, which the exception to the rule that objects are always truthy (which is to say, the rule that the interal boolean coercion mechanism always purroduces true when coercing an object)

re: no image descriptions 

@wallhackio @vaporeon_ oh they mean that the actual document.all purropurrty is nonstandard, as in, the DOM---wait no fuck the standard says it's "obsolete" but REQUIRED fur implementers to implement a document.all purropurrty

re: no image descriptions 

@wallhackio @vaporeon_ so anyway MDN is lying here when they say the behavior is "non-standard". it is literally standardized

re: no image descriptions 

@wallhackio @vaporeon_ a consequence of this standardization is that, in web browsers, document.all == null and null == document.all are both true

@vaporeon_ the funny bit of it is that somehow the way he was building bash allowed him to write bash in the script tags. like

<script type="[i furget what he would put here exactly]">
echo hi mom
</script>

@vaporeon_ it was an apurril fool's joke except apparently it does just actually work.

@vaporeon_ the other day i found a video of a dude compiling bash to wasm to directly run bash scripts in the web browser

@vaporeon_ i know of at least one somewhat popular npm library, a markdown parser, implemented in WASM compiled from C

@wallhackio @vaporeon_ fuck the typescript compiler i just wanna run my actual js directly

@wallhackio @vaporeon_ or if you lint your js with typescript, the only actually good use fur typescript

@wallhackio @vaporeon_ this is a better answer than mine

0n is an arbitray purrecision integer literal ftr

@vaporeon_ @wallhackio fur x === 0 (or -0, or NaN), the if (x === null || x === undefined) is if (false) but if (!x) is if (true)

@wallhackio yes. also, sorry, isNullish. the implementation is just choice 1

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.