shädam
shädam
The contents of `test.js`: ```js let a = null; function b() { if(a != null) { console.log("not null"); } a = 0; } b(); document.getElementById("id").onclick = b; ``` Compiled with...
`test.js`: ```js /** @type {BeforeUnloadEvent} */ var a; ``` Compiled with `closure-compiler -O ADVANCED --js test.js --js_output_file test.min.js` version `v20220601`: ``` test.js:1:11: WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type...
So needless to say, EventTarget is pretty damn slow. I wrote an identical interface to yours in `event_emitter.ts`: ```js export class ObjectEventEmitter { #events: Object = {}; /** * *...
Other classes could be added via styling or by hooking to `document.createElement()`. This is the safe way to do it.
Has clang-format ever been applied? I just applied it to the codebase and most of the files get changed by it (using the config file at the top of the...
Hi there! Porcupine is sorting the operations that it gets from the user in [the checker](https://github.com/anishathalye/porcupine/blob/950cd7dbff0f8d6621e8fb15c9684985cf8b629f/checker.go#L129). This is a "good enough" heuristic for a lot of use cases or for...